-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Adding new resource aws_msk_cluster_policy #32848
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Thank you for your contribution! 🚀 Please note that typically Go dependency changes are handled in this repository by dependabot or the maintainers. This is to prevent pull request merge conflicts and further delay reviews of contributions. Remove any changes to the Additional details:
|
@ewbankkit Happy to resubmit the PR with clean branch now that #32775 is merged, please let me know.. 🙏 |
@nrajb Don't worry -- I'll do the merge tomorrow and push the branch. |
# Conflicts: # go.mod # go.sum
Looking forward to the |
% make testacc TESTARGS='-run=TestAccKafkaClusterPolicy_' PKG=kafka
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/kafka/... -v -count 1 -parallel 20 -run=TestAccKafkaClusterPolicy_ -timeout 180m
=== RUN TestAccKafkaClusterPolicy_basic
=== PAUSE TestAccKafkaClusterPolicy_basic
=== RUN TestAccKafkaClusterPolicy_disappears
=== PAUSE TestAccKafkaClusterPolicy_disappears
=== CONT TestAccKafkaClusterPolicy_basic
=== CONT TestAccKafkaClusterPolicy_disappears
=== NAME TestAccKafkaClusterPolicy_basic
cluster_policy_test.go:29: Step 1/2 error: Error running apply: exit status 1
Error: setting MSK Cluster Policy (arn:aws:kafka:us-west-2:123456789012:cluster/tf-acc-test-5857099149822587167/ceefe3b8-6bfe-4ee2-8b15-d6dabb49c660-12): operation error Kafka: PutClusterPolicy, https response error StatusCode: 400, RequestID: da71570f-4bd1-436b-ac53-19def7536c45, BadRequestException: The cluster must have multi-VPC private connectivity enabled for its cluster policy.
with aws_msk_cluster_policy.test,
on terraform_plugin_test.tf line 62, in resource "aws_msk_cluster_policy" "test":
62: resource "aws_msk_cluster_policy" "test" {
=== NAME TestAccKafkaClusterPolicy_disappears
cluster_policy_test.go:62: Step 1/1 error: Error running apply: exit status 1
Error: setting MSK Cluster Policy (arn:aws:kafka:us-west-2:123456789012:cluster/tf-acc-test-2225640158714645767/eeaf73af-5bc9-4772-a3ba-654701643429-12): operation error Kafka: PutClusterPolicy, https response error StatusCode: 400, RequestID: 3397791b-439b-46a4-8fcf-d4735abd15f4, BadRequestException: The cluster must have multi-VPC private connectivity enabled for its cluster policy.
with aws_msk_cluster_policy.test,
on terraform_plugin_test.tf line 62, in resource "aws_msk_cluster_policy" "test":
62: resource "aws_msk_cluster_policy" "test" {
--- FAIL: TestAccKafkaClusterPolicy_basic (2417.74s)
--- FAIL: TestAccKafkaClusterPolicy_disappears (2428.68s)
FAIL
FAIL github.com/hashicorp/terraform-provider-aws/internal/service/kafka 2434.239s
FAIL
make: *** [testacc] Error 1 |
…have multi-VPC private connectivity enabled for its cluster policy' for acceptance tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% ACCTEST_TIMEOUT=360m make testacc TESTARGS='-run=TestAccKafkaClusterPolicy_' PKG=kafka ACCTEST_PARALLELISM=1
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/kafka/... -v -count 1 -parallel 1 -run=TestAccKafkaClusterPolicy_ -timeout 360m
=== RUN TestAccKafkaClusterPolicy_basic
=== PAUSE TestAccKafkaClusterPolicy_basic
=== RUN TestAccKafkaClusterPolicy_disappears
=== PAUSE TestAccKafkaClusterPolicy_disappears
=== CONT TestAccKafkaClusterPolicy_basic
--- PASS: TestAccKafkaClusterPolicy_basic (6802.15s)
=== CONT TestAccKafkaClusterPolicy_disappears
--- PASS: TestAccKafkaClusterPolicy_disappears (6762.53s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/kafka 13844.376s
@nrajb Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.13.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. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Adds support for MSK Resource Policy
Relations
Closes #31062.
References
go reference: https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/kafka
api reference: https://docs.aws.amazon.com/msk/1.0/apireference/clusters-clusterarn-policy.html
Output from Acceptance Testing