-
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
Add support for Amazon Managed Service for Prometheus #16882
Conversation
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:
|
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.
Welcome @nicolai86 👋
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! 😃
@@ -0,0 +1,44 @@ | |||
--- | |||
subcategory: "Prometheus Service (AMP)" |
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.
Amazon Managed Service for Prometheus (AMP)
Any updates when this can be merged? |
this PR adds support for the new AWS Managed Prometheus service (preview).
Thank you for your contribution! 🚀 Please note that the Remove any changes to the |
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.
Hi @nicolai86 👋 Thank you for submitting this. Overall it was on the right track. Please see the below initial feedback and reach out if you have any questions. 👍
thanks for the pointers @bflad . I've pushed a new revision that introduces waiters, removes the state, and adopts a ton of your comments. |
this PR adds support for the new AWS Managed Prometheus service (preview).
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.
Looking real good. Just some polish so we can hopefully release this today 🤞
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.
Looks great, thank you for this, @nicolai86 🚀
Output from acceptance testing in AWS Commercial:
--- PASS: TestAccAWSAMPWorkspace_disappears (12.45s)
--- PASS: TestAccAWSAMPWorkspace_basic (33.77s)
Output from acceptance testing in AWS GovCloud (US):
=== CONT TestAccAWSAMPWorkspace_disappears
resource_aws_prometheus_workspace_test.go:54: Step 1/1 error: Error running apply:
Error: error creating Prometheus WorkSpace (): RequestError: send request failed
caused by: Post "https://aps.us-gov-west-1.amazonaws.com/workspaces": dial tcp: lookup aps.us-gov-west-1.amazonaws.com: no such host
--- FAIL: TestAccAWSAMPWorkspace_disappears (29.51s)
=== CONT TestAccAWSAMPWorkspace_basic
resource_aws_prometheus_workspace_test.go:18: Step 1/4 error: Error running apply:
Error: error creating Prometheus WorkSpace (): RequestError: send request failed
caused by: Post "https://aps.us-gov-west-1.amazonaws.com/workspaces": dial tcp: lookup aps.us-gov-west-1.amazonaws.com: no such host
--- FAIL: TestAccAWSAMPWorkspace_basic (33.28s)
Which is expected because the service does not exist in those regions. Will create a followup issue to add custom PreCheck since the service is also not published in the AWS Go SDK endpoints.
This has been released in version 3.26.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! |
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! |
When merged, this will close #16788