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

Added UNSAFEFunctionCallToken to represent cloudformation functions t… #274

Merged
merged 1 commit into from
Jul 19, 2019

Conversation

zomboc0m
Copy link
Contributor

…hat return strings which are assumed to conform to be the proper string representation of a stricter type, such as a CIDR block.

The motivation for this change is that using Fn::GetAtt to get the results of a custom resource is essentially a Token[String], which cannot be used with more specific type requirements, such as a Token[CidrBlock] needed for a VPC or Subnet.

This change allows for a custom resource to output a value as a string, which can be retrieved with a Fn::GetAtt, wrapped in UNSAFEFunctionCallToken, and used as a parameter for a another resource. This change is backwards compatable and will not break any existing cftg code.

…hat return strings which are assumed to conform to be the proper string representation of a stricter type, such as a CIDR block.
Copy link
Contributor

@bkrodgers bkrodgers left a comment

Choose a reason for hiding this comment

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

LGTM

@bkrodgers bkrodgers merged commit d589725 into Bayer-Group:master Jul 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants