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

Add tags support to aws_nat_gateway resource #1625

Merged
merged 2 commits into from
Sep 12, 2017

Conversation

ewbankkit
Copy link
Contributor

Fixes #1624.

@ewbankkit
Copy link
Contributor Author

Acceptance test:

make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSNatGateway_tags'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -run=TestAccAWSNatGateway_tags -timeout 120m
=== RUN   TestAccAWSNatGateway_tags
--- PASS: TestAccAWSNatGateway_tags (242.09s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	242.098s

@Ninir Ninir added the enhancement Requests to existing resources that expand the functionality or scope. label Sep 11, 2017
Copy link
Contributor

@Ninir Ninir left a comment

Choose a reason for hiding this comment

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

Hi @ewbankkit

Thanks for the work here! 👍
Just left 2 small comments of really small importance.

Tell me what you think!

Thanks :)


if err := setTags(conn, d); err != nil {
return err
} else {
Copy link
Contributor

@Ninir Ninir Sep 11, 2017

Choose a reason for hiding this comment

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

The else is not needed since the if returns

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.


const testAccNatGatewayConfigTags = `
resource "aws_vpc" "vpc" {
cidr_block = "10.0.0.0/16"
Copy link
Contributor

Choose a reason for hiding this comment

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

Small nitpick: can you fix the indentation through the tests here? perhaps using 2 spaces, so that it is consistent with other ones?

Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@Ninir Ninir added the waiting-response Maintainers are waiting on response from community or contributor. label Sep 11, 2017
Copy link
Contributor

@Ninir Ninir left a comment

Choose a reason for hiding this comment

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

Hey @ewbankkit

This looks very good to me!

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSNatGateway_' 
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSNatGateway_ -timeout 120m
=== RUN   TestAccAWSNatGateway_importBasic
--- PASS: TestAccAWSNatGateway_importBasic (212.37s)
=== RUN   TestAccAWSNatGateway_basic
--- PASS: TestAccAWSNatGateway_basic (190.04s)
=== RUN   TestAccAWSNatGateway_tags
--- PASS: TestAccAWSNatGateway_tags (225.70s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	628.147s

Thanks a lot for your work! 👍 :)

@Ninir Ninir removed the waiting-response Maintainers are waiting on response from community or contributor. label Sep 12, 2017
@Ninir Ninir merged commit 27b346d into hashicorp:master Sep 12, 2017
@mksm mksm mentioned this pull request Sep 13, 2017
nbaztec pushed a commit to nbaztec/terraform-provider-aws that referenced this pull request Sep 26, 2017
Add tags support to aws_nat_gateway resource
@ewbankkit ewbankkit deleted the issue-1624 branch September 28, 2017 21:31
@ghost
Copy link

ghost commented Apr 11, 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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for NAT gateway tags
2 participants