Skip to content

Commit

Permalink
Update packages/@aws-cdk/aws-appconfig-alpha/lib/environment.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Luca Pizzini <lpizzini7@gmail.com>
  • Loading branch information
chenjane-dev and lpizzinidev committed Nov 30, 2023
1 parent 1e80307 commit 2ac3e0e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 364 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ describe('environment', () => {
},
AlarmRoleArn: {
'Fn::GetAtt': [
'MyEnvironmentRole51BFC2F05',
'MyEnvironmentRoleCompositeAlarm8C2A0542',
'Arn',
],
},
Expand Down Expand Up @@ -357,7 +357,7 @@ describe('environment', () => {
},
AlarmRoleArn: {
'Fn::GetAtt': [
'MyEnvironmentRole51BFC2F05',
'MyEnvironmentRoleCompositeAlarm8C2A0542',
'Arn',
],
},
Expand All @@ -371,7 +371,7 @@ describe('environment', () => {
},
AlarmRoleArn: {
'Fn::GetAtt': [
'MyEnvironmentRole51BFC2F05',
'MyEnvironmentRoleCompositeAlarm8C2A0542',
'Arn',
],
},
Expand Down

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
Expand Up @@ -35,27 +35,6 @@
}
}
},
"MyCompositeAlarm0F045229": {
"Type": "AWS::CloudWatch::CompositeAlarm",
"Properties": {
"AlarmName": "awsappconfigenvironmentMyCompositeAlarm730A7A48",
"AlarmRule": {
"Fn::Join": [
"",
[
"ALARM(\"",
{
"Fn::GetAtt": [
"MyAlarm696658B6",
"Arn"
]
},
"\")"
]
]
}
}
},
"MyEnvironmentRole01C8C013F": {
"Type": "AWS::IAM::Role",
"Properties": {
Expand Down Expand Up @@ -93,57 +72,6 @@
]
}
},
"MyEnvironmentRole51BFC2F05": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": "appconfig.amazonaws.com"
}
}
],
"Version": "2012-10-17"
},
"Policies": [
{
"PolicyDocument": {
"Statement": [
{
"Action": "cloudwatch:DescribeAlarms",
"Effect": "Allow",
"Resource": {
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":cloudwatch:",
{
"Ref": "AWS::Region"
},
":",
{
"Ref": "AWS::AccountId"
},
":alarm:*"
]
]
}
}
],
"Version": "2012-10-17"
},
"PolicyName": "AllowAppConfigMonitorAlarmPolicy"
}
]
}
},
"MyEnvironment465E4DEA": {
"Type": "AWS::AppConfig::Environment",
"Properties": {
Expand Down Expand Up @@ -179,20 +107,6 @@
"Arn"
]
}
},
{
"AlarmArn": {
"Fn::GetAtt": [
"MyCompositeAlarm0F045229",
"Arn"
]
},
"AlarmRoleArn": {
"Fn::GetAtt": [
"MyEnvironmentRole51BFC2F05",
"Arn"
]
}
}
],
"Name": "awsappconfigenvironment-MyEnvironment-C8813182"
Expand Down

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

Loading

0 comments on commit 2ac3e0e

Please sign in to comment.