-
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
resource/aws_emrcontainers_virtual_cluster: new resource #17355
resource/aws_emrcontainers_virtual_cluster: new resource #17355
Conversation
7fad24f
to
003d090
Compare
Type: schema.TypeString, | ||
Computed: true, | ||
}, | ||
"id": { |
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.
Not needed as TF always has a top level id attribute
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.
Didn't know that! Thank you!
Type: schema.TypeString, | ||
Computed: true, | ||
}, | ||
"name": { |
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.
Lets add validation to name
based on docs: https://docs.aws.amazon.com/emr-on-eks/latest/APIReference/API_CreateVirtualCluster.html#API_CreateVirtualCluster_RequestSyntax
Len is between 1 and 64
and must conform to the following regex: [\.\-_/#A-Za-z0-9]+
return fmt.Errorf("error creating EMR containers virtual cluster: %w", err) | ||
} | ||
|
||
if _, err := waiter.VirtualClusterCreated(conn, aws.StringValue(out.Id)); err != nil { |
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.
Missing SetId to the cluster id
Hmm, while writing acc tests, I noticed those two steps are not possible through the current terraform-aws-provider:
The second problem will be solved eventually but I'm not sure about how I can solve the first one... @DrFaust92 Do you have any ideas? 🙏 |
Hey @shuheiktgw, do acc tests fail without those prerequisites? I don’t how they block creating the resource and using additional resources (and providers) to add access outside the scope of the tests |
@DrFaust92 Yes without them, the acc test fails with the following error:
I've looked into eksctl's PR to enable EMR containers, and they seem to create Kubernetes resources... |
@bflad @ewbankkit Do you people know how I can write an acc test that seemingly requires provisioning Kubernetes resources? |
@shuheiktgw if it does not work by just including The maintainers are very behind on the large backlog of existing pull requests, so unfortunately we cannot provide more guidance ourselves or guarantee when this will be reviewed. |
Thank you @bflad! With that information, I think I can start writing the acc tests 👍 |
@shuheiktgw do you have any updates on this PR :) looking forward to use it |
Pull request #21306 has significantly refactored the AWS Provider codebase. As a result, most PRs opened prior to the refactor now have merge conflicts that must be resolved before proceeding. Specifically, PR #21306 relocated the code for all AWS resources and data sources from a single We recognize that many pull requests have been open for some time without yet being addressed by our maintainers. Therefore, we want to make it clear that resolving these conflicts in no way affects the prioritization of a particular pull request. Once a pull request has been prioritized for review, the necessary changes will be made by a maintainer -- either directly or in collaboration with the pull request author. For a more complete description of this refactor, including examples of how old filepaths and function names correspond to their new counterparts: please refer to issue #20000. For a quick guide on how to amend your pull request to resolve the merge conflicts resulting from this refactor and bring it in line with our new code patterns: please refer to our Service Package Refactor Pull Request Guide. |
Superseded by #20003. |
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. |
Community Note
Relates #16717
Output from acceptance testing: