-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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_sqs_queue #2311
Conversation
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.
Hi @idubinskiy
This seems really good, thanks a lot for the work here! :) 👍
Just left a few things to discuss, mostly nitpicks :)
|
||
d.Set("arn", *attributesOutput.Attributes[sqs.QueueAttributeNameQueueArn]) | ||
d.Set("url", queueURL) | ||
d.SetId(queueURL) |
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.
I think we should also set the other attributes, as in the resources, otherwise we would need to do it at some point. In the same way as the resource, could you do that? :)
} | ||
|
||
resource "aws_sqs_queue" "tf_wrong1" { | ||
name = "wrong1" |
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.
Can you add some randomization to the name here and below?
Get information on an Amazon Simple Queue Service (SQS) Queue | ||
--- | ||
|
||
# aws\_sqs\_queue |
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.
Also, those antislashes are not needed anymore :)
@idubinskiy do you have time to work on this or would you like one of the maintainers to finish it? |
Bumping this PR, would love for this to be a thing ❤️ |
I'll finish this up. |
This has been released in version 1.15.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
@bflad Really appreciate you getting this in. Sorry that I didn't have the time to finish it up. |
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! |
Acceptance tests:
Fixes #2822