Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ElasticsearchHttpPostPolicy #858

Merged
merged 2 commits into from
Mar 18, 2019
Merged

Fix ElasticsearchHttpPostPolicy #858

merged 2 commits into from
Mar 18, 2019

Conversation

shakirjames
Copy link
Contributor

Description of changes:
Added /* to resource to fix Unauthorized error for es:ESHttpPost action.

Description of how you validated changes:

Created a custom policy and tested to remove unauthorized error.

        Policies:
          - Statement:
            - Effect: Allow
              Action:
                - es:ESHttpPost
              Resource: !Sub 'arn:aws:es:${AWS::Region}:${AWS::AccountId}:domain/${DomainName}/*'
          # NOTE: Fails to work missing "/*"
          #- ElasticsearchHttpPostPolicy: 
          #    DomainName: !Ref DomainName

Checklist:

  • Write/update tests
  • make pr passes
  • Update documentation

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@villasv
Copy link
Contributor

villasv commented Mar 18, 2019

You'll probably need to change some texts that depend on the previous behavior output.

Copy link
Contributor

@jlhood jlhood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing this fix!

@keetonian keetonian merged commit a51ba12 into aws:develop Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants