Skip to content
Snippets Groups Projects
Commit 268eb9f0 authored by MIchael Nguyen's avatar MIchael Nguyen
Browse files

updating cloud formation.

parent 69693852
No related branches found
No related tags found
1 merge request!6Trusted ibm
......@@ -194,7 +194,11 @@ Resources:
!Sub "${Environment}-IndexerServiceIamUserArn"
# TODO: need to create cognito user and identity pool and link it to principal for dynamic creation
- "arn:aws:iam::888733619319:role/Cognito_osduelasticsearchAuth_Role"
Action: "es:*"
Action:
- "es:*"
- 'cognito-identity:*'
- 'cognito-idp:*'
- 'sts:AssumeRole'
Resource: !Sub arn:aws:es:us-east-1:846973539254:domain/${Environment}-${ElasticsearchDomainName}/*
AdvancedOptions:
rest.action.multi.allow_explicit_index: "true"
......
......@@ -70,8 +70,6 @@ Resources:
- 'sts:AssumeRole'
Effect: Allow
Resource: '*'
Principal:
Service: es.amazonaws.com
UserName: !Sub ${Environment}-${IndexerServiceIamUsername}
IndexerServiceIamUserAccessKey:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment