Skip to content

Commit

Permalink
Allow reading from parameter store in any region
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptSmith committed Oct 4, 2023
1 parent 8a03346 commit 2ce4fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deployment/lib/github-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class GitHubStack extends cdk.Stack {
const ssmPolicy = new iam.PolicyStatement({
effect: iam.Effect.ALLOW,
actions: ["ssm:GetParameter"],
resources: [`arn:aws:ssm:${cdk.Aws.REGION}:${cdk.Aws.ACCOUNT_ID}:parameter/app/${props.envName}/${props.repo}/env`]
resources: [`arn:aws:ssm:*:${cdk.Aws.ACCOUNT_ID}:parameter/app/${props.envName}/${props.repo}/env`]
});

const deployRole = new iam.Role(this, "deploy-role", {
Expand Down

0 comments on commit 2ce4fa8

Please sign in to comment.