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

r/aws_mq_configuration: add missing authentication_strategy #18070

Conversation

agranig
Copy link

@agranig agranig commented Mar 12, 2021

When creating an ActiveMQ instance with authentication_strategy=ldap,
then the corresponding configuration has to contain the same option
as well for the user to be able to include a cachedLDAPAuthorizationMap
element in the broker xml configuration. If the option is not provided
when creating the configuration, the default strategy "simple" is
assumed and AWS automatically removes the cachedLDAPAuthorizationMap
element.

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSMqConfiguration'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSMqConfiguration -timeout 180m
=== RUN   TestAccAWSMqConfiguration_basic
=== PAUSE TestAccAWSMqConfiguration_basic
=== RUN   TestAccAWSMqConfiguration_withData
=== PAUSE TestAccAWSMqConfiguration_withData
=== RUN   TestAccAWSMqConfiguration_withLdapData
=== PAUSE TestAccAWSMqConfiguration_withLdapData
=== RUN   TestAccAWSMqConfiguration_updateTags
=== PAUSE TestAccAWSMqConfiguration_updateTags
=== CONT  TestAccAWSMqConfiguration_basic
=== CONT  TestAccAWSMqConfiguration_withData
=== CONT  TestAccAWSMqConfiguration_updateTags
=== CONT  TestAccAWSMqConfiguration_withLdapData
--- PASS: TestAccAWSMqConfiguration_withLdapData (33.69s)
--- PASS: TestAccAWSMqConfiguration_withData (36.95s)
--- PASS: TestAccAWSMqConfiguration_basic (59.69s)
--- PASS: TestAccAWSMqConfiguration_updateTags (79.99s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	85.756s

@agranig agranig requested a review from a team as a code owner March 12, 2021 15:22
@ghost ghost added size/M Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. service/mq Issues and PRs that pertain to the mq service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Mar 12, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Mar 12, 2021
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome @agranig 👋

It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.

Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.

Thanks again, and welcome to the community! 😃

@YakDriver YakDriver self-assigned this Mar 12, 2021
@YakDriver YakDriver removed the needs-triage Waiting for first response or review from a maintainer. label Mar 12, 2021
Andreas Granig added 3 commits March 24, 2021 11:12
When creating an ActiveMQ instance with authentication_strategy=ldap,
then the corresponding configuration has to contain the same option
as well for the user to be able to include a cachedLDAPAuthorizationMap
element in the broker xml configuration. If the option is not provided
when creating the configuration, the default strategy "simple" is
assumed and AWS automatically removes the cachedLDAPAuthorizationMap
element.
@YakDriver YakDriver force-pushed the b-aws_mq_configuration-add_missing_auth_strategy branch from 80b2518 to 7f907a8 Compare March 24, 2021 15:17
@YakDriver
Copy link
Member

YakDriver commented Mar 24, 2021

@agranig Thank you for this PR! I will be looking at it in the near future. I may need to make some minor changes. Coordinate with me if you intend to push to this branch and make sure to pull any changes I've made. Please note that you will still receive all credit for the PR and your code. Thanks again for your interest!

@ghost ghost added size/L Managed by automation to categorize the size of a PR. and removed size/M Managed by automation to categorize the size of a PR. labels Mar 24, 2021
Copy link
Member

@YakDriver YakDriver left a comment

Choose a reason for hiding this comment

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

Looks great! 🎉

Acceptance tests on GovCloud:

--- SKIP: TestAccAWSMqConfiguration_updateTags (1.19s)
--- SKIP: TestAccAWSMqConfiguration_basic (1.19s)
--- SKIP: TestAccAWSMqConfiguration_withLdapData (1.19s)
--- SKIP: TestAccAWSMqConfiguration_withData (1.19s)

Acceptance tests on commercial (us-west-2):

--- PASS: TestAccAWSMqConfiguration_withLdapData (14.15s)
--- PASS: TestAccAWSMqConfiguration_basic (23.53s)
--- PASS: TestAccAWSMqConfiguration_withData (23.54s)
--- PASS: TestAccAWSMqConfiguration_updateTags (31.98s)

@YakDriver YakDriver added this to the v3.34.0 milestone Mar 24, 2021
@YakDriver YakDriver merged commit 3d8e0fa into hashicorp:main Mar 24, 2021
@agranig
Copy link
Author

agranig commented Mar 24, 2021

Thank's a lot for reviewing and merging this change!

@ghost
Copy link

ghost commented Mar 26, 2021

This has been released in version 3.34.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Apr 23, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Apr 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. service/mq Issues and PRs that pertain to the mq service. size/L Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants