-
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
provider/aws: Exposed aws_api_gateway_deployment.created_date attribute #9534
Conversation
@Ninir hi there! Thank you so much for the contribution! Allow me to ask - what is your use case so that you wish to expose creation date? I am not entirely sure why use it might have. Thank you in advance! |
Hi @kwilczynski, This is only for information purposes! Regarding a use-case, I am planning to add another PR which will expose the last_deployment data (saw an attribute for this), and accordingly, the number of deployments. Do you see any blocking-stuff to this? |
2451833
to
9ef6589
Compare
Hi @Ninir Thanks for the work here - unfortunately the tests fail :(
Please can you take a look? Thanks Paul |
9ef6589
to
6fb63f2
Compare
@stack72 Updated the code. $ make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSAPIGatewayDeployment_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2016/11/14 11:18:23 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSAPIGatewayDeployment_ -timeout 120m
=== RUN TestAccAWSAPIGatewayDeployment_basic
--- PASS: TestAccAWSAPIGatewayDeployment_basic (12.31s)
PASS
ok github.com/hashicorp/terraform/builtin/providers/aws 12.339s It is weird it was passing without the last change (reading after creating) 😅 |
This looks better now @Ninir :) 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 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. |
Description
This allows to get the API GW deployment created_date when using the
aws_api_gateway_deployment
resource.Relevant Terraform version
Checked against: Terraform v0.7.8-dev (7cb2e69+CHANGES)