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

provider/aws: Add EMR Security Configuration Resource #14080

Merged
merged 3 commits into from
Apr 28, 2017

Conversation

catsby
Copy link
Contributor

@catsby catsby commented Apr 28, 2017

Adds new emr_security_configuration resource for Terraform to manage.
This is a companion PR to #13620 and implements #11830

It does not cover ListConfigurations; that should probably be a data source

Copy link
Contributor

@grubernaut grubernaut left a comment

Choose a reason for hiding this comment

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

LGTM, few minor nits


d.Set("creation_date", resp.CreationDateTime)
d.Set("configuration", resp.SecurityConfiguration)

Copy link
Contributor

Choose a reason for hiding this comment

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

Need to set name here for the import case, more than likely


* `name` - (Optional) A unique name for this Security Configuration
* `name_prefix` - (Optional) A prefix for the name of this Security Configuration.
Terraform will generate a unique suffix.E.g: `tf-emr-sc-1234`
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe clarify that this is only when both name and name_prefix are unset

Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validateJsonString,
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we normalize the JSON string to prevent diffs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sadly it seems that adding the normal StateFunc for this actually causes some diffs

@catsby catsby force-pushed the f-aws-emr-security-configs branch from 5e8f9e7 to 075c7b7 Compare April 28, 2017 21:05
@catsby
Copy link
Contributor Author

catsby commented Apr 28, 2017

TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSEmrSecurityConfiguration -timeout 120m
=== RUN   TestAccAWSEmrSecurityConfiguration_importBasic
--- PASS: TestAccAWSEmrSecurityConfiguration_importBasic (11.32s)
=== RUN   TestAccAWSEmrSecurityConfiguration_basic
--- PASS: TestAccAWSEmrSecurityConfiguration_basic (8.92s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/aws    20.266s

Copy link
Contributor

@grubernaut grubernaut left a comment

Choose a reason for hiding this comment

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


LGTM

@catsby catsby merged commit 7c59f7e into master Apr 28, 2017
@grubernaut grubernaut deleted the f-aws-emr-security-configs branch May 11, 2017 00:31
@ghost
Copy link

ghost commented Apr 12, 2020

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants