-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
New Data Source: aws_storagegateway_gateway_activation_key #5200
Conversation
This logic might get folded into the an |
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.
otherwise LGTM 👍
aws/provider.go
Outdated
@@ -581,6 +581,7 @@ func Provider() terraform.ResourceProvider { | |||
"aws_ssm_patch_group": resourceAwsSsmPatchGroup(), | |||
"aws_ssm_parameter": resourceAwsSsmParameter(), | |||
"aws_ssm_resource_data_sync": resourceAwsSsmResourceDataSync(), | |||
"aws_storagegateway_gateway_activation_key": resourceAwsStorageGatewayGatewayActivationKey(), |
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.
maybe aws_storagegateway_gateway_activation_key
wants to be aws_storage_gateway_activation_key
?
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.
Sorry meant to reply to this directly as well -- we're trying to keep the resource/data source names as follows: aws_SERVICE_THING
. In this case, the service is storagegateway
to match the SDK and the thing is a gateway activation key (in case they introduce some other "activation key"s) which is used specifically for activating gateways via ActivateGateway.
}, | ||
Timeout: time.Second * 10, | ||
} | ||
requestURL := fmt.Sprintf("http://%s/?activationRegion=%s", ipAddress, activationRegion) |
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.
feels like this wants a "this is a special configuration and we don't support using resources in this manor; please use the AWS SDK where possible" disclaimer?
|
||
~> **NOTE:** Terraform must be able to make an HTTP (port 80) GET request to the specified IP address from where it is running. | ||
|
||
~> **NOTE:** Deleting this Terraform resource does not perform any operations. |
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.
then should this be a data source?
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.
Re-implemented as data source after I figured out that data sources also support configurable timeouts 😄
415c622
to
f5d7664
Compare
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! |
Reference: #943
Changes proposed in this pull request:
Output from acceptance testing: