-
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
Add name_prefix
support to aws_cloudwatch_log_group
#13273
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.
1 pending point inline atm
@@ -49,10 +58,19 @@ func resourceAwsCloudWatchLogGroup() *schema.Resource { | |||
func resourceAwsCloudWatchLogGroupCreate(d *schema.ResourceData, meta interface{}) error { | |||
conn := meta.(*AWSClient).cloudwatchlogsconn | |||
|
|||
log.Printf("[DEBUG] Creating CloudWatch Log Group: %s", d.Get("name").(string)) | |||
var logGroupName string |
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'm starting to think we should refactor this type of code into a common structure fund - it is repeated in a lot of places now - thoughts?
We could pass name
, name_prefix
and return the formatted value
Thoughts?
LGTM! Left 1 minor point inline but nothing to stop the merge Thanks, as usual :)
|
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. |
Adds
name_prefix
support to theaws_cloudwatch_log_group
resource.