Skip to content

Instantly share code, notes, and snippets.

@ystoneman
Last active September 1, 2021 21:23
Show Gist options
  • Save ystoneman/454bd441f07da0b7d075e802659aa119 to your computer and use it in GitHub Desktop.
Save ystoneman/454bd441f07da0b7d075e802659aa119 to your computer and use it in GitHub Desktop.
Snippet of how MasterUser for AWS ElasticSearch is specified in CloudFormation in aws-cdk/packages/@aws-cdk
Resources:
User1:
Type: AWS::IAM::User
Domain1:
Type: AWS::Elasticsearch::Domain
Properties:
AdvancedSecurityOptions:
Enabled: true
InternalUserDatabaseEnabled: false
MasterUserOptions:
MasterUserARN: !GetAtt User1.Arn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment