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

Add support for Fn::FindInMap intrinsic #221

Merged
merged 1 commit into from
Nov 15, 2024
Merged

Conversation

corymhall
Copy link
Contributor

This adds support for the CloudFormation Fn::FindInMap intrinsic
function.

Docs on the Mappings section of a CloudFormation template can be found
here.

Docs on the Fn::FindInMap function can be found here

closes #187

@corymhall corymhall self-assigned this Nov 15, 2024
@@ -109,6 +109,12 @@ export class StackManifest {
*/
private readonly resources: { [logicalId: string]: CloudFormationResource };

/**
* The Mappings from the CFN Stack
* @see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/mappings-section-structure.html
Copy link
Member

Choose a reason for hiding this comment

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

👍

@@ -24,10 +24,16 @@ export interface CloudFormationResource {
readonly DependsOn?: string | string[];
}

export type CloudFormationMapping = { [mappingLogicalName: string]: TopLevelMapping };
Copy link
Member

Choose a reason for hiding this comment

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

👍

This adds support for the CloudFormation `Fn::FindInMap` intrinsic
function.

Docs on the `Mappings` section of a CloudFormation template can be found
[here](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/mappings-section-structure.html).

Docs on the `Fn::FindInMap` function can be found [here](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-findinmap.html)

closes #187
@corymhall corymhall force-pushed the corymhall/fn-find-in-map branch from 88e1d0f to 97f4332 Compare November 15, 2024 17:38
@corymhall corymhall enabled auto-merge (squash) November 15, 2024 17:39
@corymhall corymhall merged commit 7bb6000 into main Nov 15, 2024
13 checks passed
@corymhall corymhall deleted the corymhall/fn-find-in-map branch November 15, 2024 18:29
@pulumi-bot
Copy link
Contributor

This PR has been shipped in release v1.0.0.

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.

Support FindInMap intrinsic
3 participants