-
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
feat: Add required suffix when specifying log group ARN #35941
Open
djsd123
wants to merge
2
commits into
hashicorp:main
Choose a base branch
from
djsd123:f-add-suffix-to-log-group-arn
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+97
−4
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Community NoteVoting for Prioritization
For Submitters
|
Thank you for your contribution! 🚀 Please note that typically Go dependency changes are handled in this repository by dependabot or the maintainers. This is to prevent pull request merge conflicts and further delay reviews of contributions. Remove any changes to the Additional details:
|
90bc163
to
b8891f0
Compare
…ment template Specifying a cloudwatch log-group ARN on a `aws_fis_experiment_template` like so: ``` log_configuration { log_schema_version = 2 cloudwatch_logs_configuration { log_group_arn = aws_cloudwatch_log_group.example.arn } } ``` results in: ``` ╷ │ Error: creating AWS FIS (Fault Injection Simulator) Experiment Template (Test dev provider): operation error fis: CreateExperimentTemplate, https response error StatusCode: 400, | RequestID: a84b03ea-b1ff-49f5-9be6-b0ad450666cf, ValidationException: The logGroupArn "arn:aws:logs:eu-west-1:${accountId}:log-group:/aws/fis" in cloudWatchLogsLogConfiguration is not valid. │ │ with aws_fis_experiment_template.fis, │ on fis.tf line 1, in resource "aws_fis_experiment_template" "fis": │ 1: resource "aws_fis_experiment_template" "fis" { │ ╵ ``` This is because AWS expects this suffix `:*` on the log-group ARN like so: ``` log_configuration { log_schema_version = 2 cloudwatch_logs_configuration { log_group_arn = "${aws_cloudwatch_log_group.example.arn}:*" } } ``` As far as I could tell, the requirement for the suffix is not well documented. Also the ambiguous Api error from AWS is not helpful. Propose the required suffix is added if not present. Specifying `log_group_arn = aws_cloudwatch_log_group.example.arn` is more intuitive imho.
b8891f0
to
4e972b7
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
documentation
Introduces or discusses updates to documentation.
enhancement
Requests to existing resources that expand the functionality or scope.
service/fis
Issues and PRs that pertain to the fis service.
tests
PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Specifying a cloudwatch log-group ARN on an
aws_fis_experiment_template
like so:results in:
This is because AWS expects this suffix
:*
on the log-group ARN like so:As far as I can tell, the requirement for the suffix is not well documented. Also, the ambiguous Api error from AWS is not helpful. Propose the required suffix is added if not present. Specifying
log_group_arn = aws_cloudwatch_log_group.example.arn
is more intuitive imho.Output from Acceptance Testing
Acceptance
Unit