Skip to content

Instantly share code, notes, and snippets.

@OksanaH
Created March 13, 2021 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OksanaH/49c3e81e2eb4655b9166ff3256122434 to your computer and use it in GitHub Desktop.
Save OksanaH/49c3e81e2eb4655b9166ff3256122434 to your computer and use it in GitHub Desktop.
CodePipelineServiceRolePolicy
var policyProps = new PolicyStatementProps()
{
Actions = new string[] { "codestar-connections:UseConnection" },
Effect = Effect.ALLOW,
Resources = new string[] { connectionArn }
};
pipeline.CodePipeline.AddToRolePolicy(new PolicyStatement(policyProps));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment