Created
October 22, 2019 11:03
-
-
Save mgjam/57c0e7d76b606939f5d385adea166719 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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