Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated CloudFormation templates #241

Closed
wants to merge 2 commits into from
Closed

Conversation

wadhawh
Copy link
Collaborator

@wadhawh wadhawh commented Aug 20, 2024

This PR updates the default and main CloudFormation template, handling websocket URL output value.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Comment on lines +701 to +706
const splitEndpointAddress = data.endpointAddress.split(".");
const endpointAddress = !splitEndpointAddress[0].endsWith("-ats")
? `${splitEndpointAddress[0]}-ats.${splitEndpointAddress
.splice(1)
.join(".")}`
: data.endpointAddress;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, looking at this further, I don't understand the logic here. From the IoT docs, it seems like the "-ats" is distinguishing between Verisign-signed and ATS-signed endpoints: https://docs.aws.amazon.com/iot/latest/apireference/API_DescribeEndpoint.html . If the goal is to always have ats-signed endpoints, shouldn't this be passing in endpointType = iot:Data-ATS? I'm not sure it's guaranteed that you can take a Verisign-signed endpoint and just tack "-ats" at the end to get an ATS-signed endpoint.

Copy link
Collaborator

@its-aazizi its-aazizi Aug 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mbalfour-amzn closing this, raised another PR that is updated with main, and that PR resolves your above comment.

@wadhawh wadhawh closed this Aug 21, 2024
@wadhawh wadhawh deleted the cloudformation-templates branch August 21, 2024 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants