Skip to content

Commit

Permalink
Update cid-cfn.yml (#1067)
Browse files Browse the repository at this point in the history
Fix: Correct environment variable map key format for CidExec resource

In the CloudFormation deployment of the CidExec resource, an error was encountered due to an invalid map key format in the environment variables. CloudFormation returned an error indicating that environment variable names must adhere to the regular expression pattern `[a-zA-Z]([a-zA-Z0-9_])+`, meaning they must start with a letter and can only contain letters, numbers, and underscores.

The key `account-map-database-name` contained a hyphen, which caused the validation failure. Replaced the hyphen with an underscore to comply with the naming convention for Lambda environment variable keys.

Fixes the CloudFormation error in the CidExec resource.
  • Loading branch information
usama-muf authored Dec 18, 2024
1 parent 5585386 commit a0a3e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cfn-templates/cid-cfn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1795,7 +1795,7 @@ Resources:
quicksight_user: !Ref QuickSightUser
account_map_source: 'dummy' #initial
share_with_account: !Ref ShareDashboard
account-map-database-name: !If [NeedDatabase, !Ref CidDatabase, !Ref DatabaseName ]
account_map_database_name: !If [NeedDatabase, !Ref CidDatabase, !Ref DatabaseName ]
Metadata:
cfn_nag:
rules_to_suppress:
Expand Down

0 comments on commit a0a3e52

Please sign in to comment.