Skip to content

Commit

Permalink
fix(base-standalone): Replace deprecated IAM Policy AWSConfigRole w…
Browse files Browse the repository at this point in the history
…ith `AWS_ConfigRole` (#46)
  • Loading branch information
watany-dev authored May 12, 2022
1 parent 2fcef62 commit 47cadcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion usecases/base-standalone/lib/blea-config-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class BLEAConfigStack extends cdk.Stack {

const role = new iam.Role(this, 'ConfigRole', {
assumedBy: new iam.ServicePrincipal('config.amazonaws.com'),
managedPolicies: [iam.ManagedPolicy.fromAwsManagedPolicyName('service-role/AWSConfigRole')],
managedPolicies: [iam.ManagedPolicy.fromAwsManagedPolicyName('service-role/AWS_ConfigRole')],
});

new config.CfnConfigurationRecorder(this, 'ConfigRecorder', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,7 @@ Object {
Object {
"Ref": "AWS::Partition",
},
":iam::aws:policy/service-role/AWSConfigRole",
":iam::aws:policy/service-role/AWS_ConfigRole",
],
],
},
Expand Down

0 comments on commit 47cadcc

Please sign in to comment.