-
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
CloudWatch Logs Delivery v2 #40731
CloudWatch Logs Delivery v2 #40731
Conversation
Community NoteVoting for Prioritization
For Submitters
|
% make testacc TESTARGS='-run=TestAccLogsDeliverySource_basic' PKG=logs make: Verifying source code with gofmt... ==> Checking that code complies with gofmt requirements... TF_ACC=1 go1.23.3 test ./internal/service/logs/... -v -count 1 -parallel 20 -run=TestAccLogsDeliverySource_basic -timeout 360m 2024/12/30 17:43:31 Initializing Terraform AWS Provider... === RUN TestAccLogsDeliverySource_basic === PAUSE TestAccLogsDeliverySource_basic === CONT TestAccLogsDeliverySource_basic --- PASS: TestAccLogsDeliverySource_basic (1229.44s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/logs 1234.724s
… is ForceNew if the type changes.
…: 0 or 2; Actual: 1]'.
% make testacc TESTARGS='-run=TestAccLogs_serial/^DeliverySource$$/tags' PKG=logs make: Verifying source code with gofmt... ==> Checking that code complies with gofmt requirements... TF_ACC=1 go1.23.3 test ./internal/service/logs/... -v -count 1 -parallel 20 -run=TestAccLogs_serial/^DeliverySource$/tags -timeout 360m 2025/01/07 08:39:51 Initializing Terraform AWS Provider... === RUN TestAccLogs_serial === PAUSE TestAccLogs_serial === CONT TestAccLogs_serial === RUN TestAccLogs_serial/DeliverySource === RUN TestAccLogs_serial/DeliverySource/tags --- PASS: TestAccLogs_serial (1444.05s) --- PASS: TestAccLogs_serial/DeliverySource (1444.05s) --- PASS: TestAccLogs_serial/DeliverySource/tags (1444.05s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/logs 1449.433s
fixed via dd1ad7c: % make testacc TESTARGS='-run=TestAccLogs_serial/^DeliverySource$$/tags' PKG=logs
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/logs/... -v -count 1 -parallel 20 -run=TestAccLogs_serial/^DeliverySource$/tags -timeout 360m
2025/01/07 08:39:51 Initializing Terraform AWS Provider...
=== RUN TestAccLogs_serial
=== PAUSE TestAccLogs_serial
=== CONT TestAccLogs_serial
=== RUN TestAccLogs_serial/DeliverySource
=== RUN TestAccLogs_serial/DeliverySource/tags
--- PASS: TestAccLogs_serial (1444.05s)
--- PASS: TestAccLogs_serial/DeliverySource (1444.05s)
--- PASS: TestAccLogs_serial/DeliverySource/tags (1444.05s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/logs 1449.433s |
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.
LGTM 🎉
% make testacc PKG=logs TESTARGS='-run=TestAccLogsDeliveryDestination_'
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/logs/... -v -count 1 -parallel 20 -run=TestAccLogsDeliveryDestination_ -timeout 360m
2025/01/06 16:38:45 Initializing Terraform AWS Provider...
--- PASS: TestAccLogsDeliveryDestination_disappears (14.80s)
--- PASS: TestAccLogsDeliveryDestination_basic (18.73s)
--- PASS: TestAccLogsDeliveryDestination_updateDeliveryDestinationConfigurationSameType (32.51s)
--- PASS: TestAccLogsDeliveryDestination_updateDeliveryDestinationConfigurationDifferentType (34.63s)
--- PASS: TestAccLogsDeliveryDestination_outputFormat (35.34s)
--- PASS: TestAccLogsDeliveryDestination_tags (39.56s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/logs 46.141s
% make testacc PKG=logs TESTARGS='-run=TestAccLogsDeliveryDestinationPolicy_'
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/logs/... -v -count 1 -parallel 20 -run=TestAccLogsDeliveryDestinationPolicy_ -timeout 360m
2025/01/06 16:40:04 Initializing Terraform AWS Provider...
--- PASS: TestAccLogsDeliveryDestinationPolicy_disappears (14.75s)
--- PASS: TestAccLogsDeliveryDestinationPolicy_basic (16.79s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/logs 23.215s
% make testacc PKG=logs TESTARGS='-run=TestAccLogs_serial/^DeliverySource$$'
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/logs/... -v -count 1 -parallel 20 -run=TestAccLogs_serial/^DeliverySource$ -timeout 360m
2025/01/07 09:17:58 Initializing Terraform AWS Provider...
--- PASS: TestAccLogs_serial (4405.15s)
--- PASS: TestAccLogs_serial/DeliverySource (4405.15s)
--- PASS: TestAccLogs_serial/DeliverySource/basic (1509.33s)
--- PASS: TestAccLogs_serial/DeliverySource/disappears (1443.28s)
--- PASS: TestAccLogs_serial/DeliverySource/tags (1452.54s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/logs 4410.689s
% make testacc PKG=logs TESTARGS='-run=TestAccLogs_serial/^Delivery$$'
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/logs/... -v -count 1 -parallel 20 -run=TestAccLogs_serial/^Delivery$ -timeout 360m
2025/01/07 10:38:09 Initializing Terraform AWS Provider...
--- PASS: TestAccLogs_serial (5820.96s)
--- PASS: TestAccLogs_serial/Delivery (5820.96s)
--- PASS: TestAccLogs_serial/Delivery/basic (1407.35s)
--- PASS: TestAccLogs_serial/Delivery/disappears (1463.59s)
--- PASS: TestAccLogs_serial/Delivery/tags (1535.33s)
--- PASS: TestAccLogs_serial/Delivery/update (1414.68s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/logs 5826.167s
This is great. I was searching up for it and landed here :-) Any estimate on when this is planned to be released for all of us to use this feature? |
@ewbankkit It looks like the Is using an argument |
This functionality has been released in v5.83.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Oh! I was going to ask the same question. I was hoping to use this CloudFront logs to be sent to CloudWatch. Is it not possible with https://github.com/hashicorp/terraform-provider-aws/blob/v5.83.0/CHANGELOG.md |
You can set log_type to "ACCESS_LOGS" without issue, i guess this just needs a doco update.
There is an issue with aws_cloudwatch_log_delivery though
results in error
Tried setting field_delimiter to "\t" but resulted in error also
I'm currently using awscc for this and it works
|
@scottharris @kbachuHighSpot Please open a new GitHub issue to report problems. |
Description
New resources to support CloudWatch Logs Delivery v2.
Relations
Closes #40250.
Output from Acceptance Testing