-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
[WIP] provider/aws: Add aws_workspace resource #7806
Conversation
liamjbennett
commented
Jul 26, 2016
•
edited
Loading
edited
- CRUD
- Exported Attributes
- Timeouts (> 20 mins)
- Acceptance Tests
- Docs
Question: how do I make the resource work with the |
@liamjbennett It should just work out of the box - that's a terraform's core feature, not resource specific thing. The only thing to keep in mind is that you can replicate resources, but not inner nested blocks inside resources. e.g. you can use |
foundBundles, err := findWorkspacesBundle("AMAZON", d.Get("bundle_name").(string), meta) | ||
|
||
if err != nil { | ||
log.Printf("Error finding bundle: %q", err.Error()) |
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.
we can wrap this log and return err into
return fmt.Errorf("Error finding bundle: %q"m err)
Hey @liamjbennett A few small comments inline. Nothing major. Please can you drop the results of the test into the PR as well for reference :) P. |
@stack72 @radeksimko
|
@liamjbennett Have a look at the diff of - ConfigureFunc: providerConfigure, That's most likely the cause of that error 😉 |
@radeksimko Doh. Yes that solved the issue. I am now getting a genuine test failure - which I beleieve might be something to do with the active directory dependency. Is there anyway to see the TF run that is executed as part of the test? |
You mean to see the debug output from tests? Setting the right ENV variables may help: https://github.com/hashicorp/terraform/blob/master/website/source/docs/internals/debugging.html.md#debugging-terraform |
This is currently blocked because the workspace api support registering the directory e.g. https://docs.aws.amazon.com/workspaces/latest/adminguide/registration.html |
Ref: aws/aws-sdk-go#814 |
Given that we are unable to test this due to the missing api's and the total silence from aws on the matter I am going to close this PR for now and come back to it at a future point in time. |
@liamjbennett Cloud Formation currently handles it that way.
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspace.html |
@jayyvis yes we do that with cloud formation also but for the sake of this PR there is no way to actually run the tests without manually performing that registration, which is not acceptable. |
A year on, is there any way to get this done now? |
Since the AWS provider is no longer developed in this repository, the tracking issue for this is hashicorp/terraform-provider-aws#434 . There will be no further updates posted here because the relevant code is no longer in this repository. |