Skip to content

Commit

Permalink
feature flag integ and snaps
Browse files Browse the repository at this point in the history
Signed-off-by: Francis <colifran@amazon.com>
  • Loading branch information
colifran committed Jun 5, 2024
1 parent 8bfa91a commit 7893881
Show file tree
Hide file tree
Showing 11 changed files with 928 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"Resources": {
"SecretA720EF05": {
"Type": "AWS::SSM::Parameter",
"Properties": {
"Name": "Password",
"Type": "String",
"Value": "ThisIsMyPassword"
}
}
},
"Outputs": {
"ExportsOutputRefSecretA720EF052D953DED": {
"Value": {
"Ref": "SecretA720EF05"
},
"Export": {
"Name": "CreateParameterStack:ExportsOutputRefSecretA720EF052D953DED"
}
}
},
"Parameters": {
"BootstrapVersion": {
"Type": "AWS::SSM::Parameter::Value<String>",
"Default": "/cdk-bootstrap/hnb659fds/version",
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
}
},
"Rules": {
"CheckBootstrapVersion": {
"Assertions": [
{
"Assert": {
"Fn::Not": [
{
"Fn::Contains": [
[
"1",
"2",
"3",
"4",
"5"
],
{
"Ref": "BootstrapVersion"
}
]
}
]
},
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
}
]
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
{
"Resources": {
"GetSecret8A933C6F": {
"Type": "Custom::AWS",
"Properties": {
"ServiceToken": {
"Fn::GetAtt": [
"AWS679f53fac002430cb0da5b7982bd22872D164C4C",
"Arn"
]
},
"Create": {
"Fn::Join": [
"",
[
"{\"service\":\"SSM\",\"action\":\"GetParameter\",\"parameters\":{\"Name\":\"",
{
"Fn::ImportValue": "CreateParameterStack:ExportsOutputRefSecretA720EF052D953DED"
},
"\",\"WithDecryption\":true},\"physicalResourceId\":{\"id\":\"",
{
"Fn::ImportValue": "CreateParameterStack:ExportsOutputRefSecretA720EF052D953DED"
},
"\"},\"logApiResponseData\":true}"
]
]
},
"Update": {
"Fn::Join": [
"",
[
"{\"service\":\"SSM\",\"action\":\"GetParameter\",\"parameters\":{\"Name\":\"",
{
"Fn::ImportValue": "CreateParameterStack:ExportsOutputRefSecretA720EF052D953DED"
},
"\",\"WithDecryption\":true},\"physicalResourceId\":{\"id\":\"",
{
"Fn::ImportValue": "CreateParameterStack:ExportsOutputRefSecretA720EF052D953DED"
},
"\"},\"logApiResponseData\":true}"
]
]
},
"InstallLatestAwsSdk": "false"
},
"DependsOn": [
"GetSecretCustomResourcePolicyB461F5E2"
],
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
},
"GetSecretCustomResourcePolicyB461F5E2": {
"Type": "AWS::IAM::Policy",
"Properties": {
"PolicyDocument": {
"Statement": [
{
"Action": "ssm:GetParameter",
"Effect": "Allow",
"Resource": "*"
}
],
"Version": "2012-10-17"
},
"PolicyName": "GetSecretCustomResourcePolicyB461F5E2",
"Roles": [
{
"Ref": "AWS679f53fac002430cb0da5b7982bd2287ServiceRoleC1EA0FF2"
}
]
}
},
"AWS679f53fac002430cb0da5b7982bd2287ServiceRoleC1EA0FF2": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": "lambda.amazonaws.com"
}
}
],
"Version": "2012-10-17"
},
"ManagedPolicyArns": [
{
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
]
]
}
]
}
},
"AWS679f53fac002430cb0da5b7982bd22872D164C4C": {
"Type": "AWS::Lambda::Function",
"Properties": {
"Code": {
"S3Bucket": {
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
},
"S3Key": "746da84b10e215c552e68b6d2061024e4429f0386f43a35ef5e4d2940655692e.zip"
},
"Handler": "index.handler",
"Role": {
"Fn::GetAtt": [
"AWS679f53fac002430cb0da5b7982bd2287ServiceRoleC1EA0FF2",
"Arn"
]
},
"Runtime": "nodejs18.x",
"Timeout": 120
},
"DependsOn": [
"AWS679f53fac002430cb0da5b7982bd2287ServiceRoleC1EA0FF2"
]
}
},
"Outputs": {
"RevealSecret": {
"Value": {
"Fn::GetAtt": [
"GetSecret8A933C6F",
"Parameter.Value"
]
}
}
},
"Parameters": {
"BootstrapVersion": {
"Type": "AWS::SSM::Parameter::Value<String>",
"Default": "/cdk-bootstrap/hnb659fds/version",
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
}
},
"Rules": {
"CheckBootstrapVersion": {
"Assertions": [
{
"Assert": {
"Fn::Not": [
{
"Fn::Contains": [
[
"1",
"2",
"3",
"4",
"5"
],
{
"Ref": "BootstrapVersion"
}
]
}
]
},
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
}
]
}
}
}

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7893881

Please sign in to comment.