-
Notifications
You must be signed in to change notification settings - Fork 10
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
Help with Intrinsic functions #394
Comments
Hey @jbieberly-xumo, My best guess right now is that it isn't necessarily something you are doing wrong, but possibly an edge case either with ordering of intrinsic functions or how rendering of the Would you be able to provide a bit more of the template, including the two involved resources so I can troubleshoot a bit better? Thanks. |
Here is the template portion that creates
As you can see, it is very basic, but the IngestEndpointUrls are returned after the channel is created. Then they can be accessed with this: So I need a way to mock that value, since with cloud_radar it isn't actually creating the MediaPackageV2Channel and no URL would be returned. I'm accessing the IngestEndpointUrls twice, once when I create an ECS task definition and once in the output of the CF stack. The ECS task definition has a bunch of stuff I probably shouldn't share, but the output looks like this: |
Thanks for that - it'll help diagnose things a bit better. Probably won't be till next week though until I can get a look at it. Got a crazy amount of things to get done this week. |
I am attempting to build a test template for a CloudFormation template that uses intrinsic functions to use values returned after resources are created to populate values needed for other resources in the same template. Here is what this part of my CloudFormation template looks like:
- Name: ENDPOINT_MPV2_2 Value: !Select [0, !GetAtt MediaPackageV2Channel.IngestEndpointUrls] - Name: ENDPOINT_MPV2_1 Value: !Select [1, !GetAtt MediaPackageV2Channel.IngestEndpointUrls]
This functionality works fine and the correct values get populated when I build a CloudFormation stack.
I've tried several methods to mock these URL values, none have been successful. I typically get an error like one of these, depending on what I try:
Error: IngestEndpointUrls property is missing from MediaPackageV2Channel resource.
Error: Fn::Select - The first value must be a Number and the second a List.
The failure always occurs at
template.create_stack
when running the test function.Is there some documentation I should be referencing to figure this out? An example would be great!
The text was updated successfully, but these errors were encountered: