Skip to content

Instantly share code, notes, and snippets.

@mgjam
Created October 22, 2019 11:03
Show Gist options
  • Save mgjam/57c0e7d76b606939f5d385adea166719 to your computer and use it in GitHub Desktop.
Save mgjam/57c0e7d76b606939f5d385adea166719 to your computer and use it in GitHub Desktop.
private static createUser(scope: cdk.Construct): iam.User {
const name = 'User';
return new iam.User(scope, name, {
userName: name
});
}
private static createAccessKey(
scope: cdk.Construct,
javascriptArtifactsS3User: iam.User
): iam.CfnAccessKey {
const name = 'UserAccessKey'
return new iam.CfnAccessKey(scope, name, {
userName: javascriptArtifactsS3User.userName
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment