-
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
Support Eventbridge Pipes parameters #31607
Conversation
* Add support for Eventbridge Enrichment Parameters * Add support for Eventbridge Target Parameters * Add support for Eventbridge Source Parameters * Due to the amount of parameters add unit tests to ensure the mapping is correct to the right struct value * Update docs to support parameters
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:
|
…arget'. Acceptance test output: % make testacc TESTARGS='-run=TestAccPipesPipe_dynamoDBSourceCloudWatchLogsTarget' PKG=pipes ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/pipes/... -v -count 1 -parallel 20 -run=TestAccPipesPipe_dynamoDBSourceCloudWatchLogsTarget -timeout 180m === RUN TestAccPipesPipe_dynamoDBSourceCloudWatchLogsTarget === PAUSE TestAccPipesPipe_dynamoDBSourceCloudWatchLogsTarget === CONT TestAccPipesPipe_dynamoDBSourceCloudWatchLogsTarget --- PASS: TestAccPipesPipe_dynamoDBSourceCloudWatchLogsTarget (75.22s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/pipes 80.505s
…get'. Acceptance test output: % make testacc TESTARGS='-run=TestAccPipesPipe_activeMQSourceStepFunctionTarget' PKG=pipes ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/pipes/... -v -count 1 -parallel 20 -run=TestAccPipesPipe_activeMQSourceStepFunctionTarget -timeout 180m === RUN TestAccPipesPipe_activeMQSourceStepFunctionTarget === PAUSE TestAccPipesPipe_activeMQSourceStepFunctionTarget === CONT TestAccPipesPipe_activeMQSourceStepFunctionTarget --- PASS: TestAccPipesPipe_activeMQSourceStepFunctionTarget (1084.58s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/pipes 1090.076s
Acceptance test output: % make testacc TESTARGS='-run=TestAccPipesPipe_rabbitMQSourceEventBusTarget' PKG=pipes ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/pipes/... -v -count 1 -parallel 20 -run=TestAccPipesPipe_rabbitMQSourceEventBusTarget -timeout 180m === RUN TestAccPipesPipe_rabbitMQSourceEventBusTarget === PAUSE TestAccPipesPipe_rabbitMQSourceEventBusTarget === CONT TestAccPipesPipe_rabbitMQSourceEventBusTarget --- PASS: TestAccPipesPipe_rabbitMQSourceEventBusTarget (718.07s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/pipes 723.681s
Acceptance test output: % make testacc TESTARGS='-run=TestAccPipesPipe_sqsSourceRedshiftTarget' PKG=pipes ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/pipes/... -v -count 1 -parallel 20 -run=TestAccPipesPipe_sqsSourceRedshiftTarget -timeout 180m === RUN TestAccPipesPipe_sqsSourceRedshiftTarget === PAUSE TestAccPipesPipe_sqsSourceRedshiftTarget === CONT TestAccPipesPipe_sqsSourceRedshiftTarget --- PASS: TestAccPipesPipe_sqsSourceRedshiftTarget (316.69s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/pipes 323.496s
…t' PKG=pipes ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/pipes/... -v -count 1 -parallel 20 -run=TestAccPipesPipe_sqsSourceBatchJobTarget -timeout 180m === RUN TestAccPipesPipe_sqsSourceBatchJobTarget === PAUSE TestAccPipesPipe_sqsSourceBatchJobTarget === CONT TestAccPipesPipe_sqsSourceBatchJobTarget --- PASS: TestAccPipesPipe_sqsSourceBatchJobTarget (164.41s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/pipes 170.141s
Acceptance test output: % make testacc TESTARGS='-run=TestAccPipesPipe_enrichmentParameters' PKG=pipes ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/pipes/... -v -count 1 -parallel 20 -run=TestAccPipesPipe_enrichmentParameters -timeout 180m === RUN TestAccPipesPipe_enrichmentParameters === PAUSE TestAccPipesPipe_enrichmentParameters === CONT TestAccPipesPipe_enrichmentParameters --- PASS: TestAccPipesPipe_enrichmentParameters (140.48s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/pipes 146.365s
…k lines [Expected: 1; Actual: 2]'.
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 TESTARGS='-run=TestAccPipesPipe_' PKG=pipes ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/pipes/... -v -count 1 -parallel 3 -run=TestAccPipesPipe_ -timeout 180m
=== RUN TestAccPipesPipe_basicSQS
=== PAUSE TestAccPipesPipe_basicSQS
=== RUN TestAccPipesPipe_disappears
=== PAUSE TestAccPipesPipe_disappears
=== RUN TestAccPipesPipe_description
=== PAUSE TestAccPipesPipe_description
=== RUN TestAccPipesPipe_desiredState
=== PAUSE TestAccPipesPipe_desiredState
=== RUN TestAccPipesPipe_enrichment
=== PAUSE TestAccPipesPipe_enrichment
=== RUN TestAccPipesPipe_enrichmentParameters
=== PAUSE TestAccPipesPipe_enrichmentParameters
=== RUN TestAccPipesPipe_sourceParameters_filterCriteria
=== PAUSE TestAccPipesPipe_sourceParameters_filterCriteria
=== RUN TestAccPipesPipe_nameGenerated
=== PAUSE TestAccPipesPipe_nameGenerated
=== RUN TestAccPipesPipe_namePrefix
=== PAUSE TestAccPipesPipe_namePrefix
=== RUN TestAccPipesPipe_roleARN
=== PAUSE TestAccPipesPipe_roleARN
=== RUN TestAccPipesPipe_tags
=== PAUSE TestAccPipesPipe_tags
=== RUN TestAccPipesPipe_targetUpdate
=== PAUSE TestAccPipesPipe_targetUpdate
=== RUN TestAccPipesPipe_targetParameters_inputTemplate
=== PAUSE TestAccPipesPipe_targetParameters_inputTemplate
=== RUN TestAccPipesPipe_kinesisSourceAndTarget
=== PAUSE TestAccPipesPipe_kinesisSourceAndTarget
=== RUN TestAccPipesPipe_dynamoDBSourceCloudWatchLogsTarget
=== PAUSE TestAccPipesPipe_dynamoDBSourceCloudWatchLogsTarget
=== RUN TestAccPipesPipe_activeMQSourceStepFunctionTarget
=== PAUSE TestAccPipesPipe_activeMQSourceStepFunctionTarget
=== RUN TestAccPipesPipe_rabbitMQSourceEventBusTarget
=== PAUSE TestAccPipesPipe_rabbitMQSourceEventBusTarget
=== RUN TestAccPipesPipe_mskSourceHTTPTarget
acctest.go:79: DependencyViolation errors deleting subnets and security group
--- SKIP: TestAccPipesPipe_mskSourceHTTPTarget (0.00s)
=== RUN TestAccPipesPipe_selfManagedKafkaSourceLambdaFunctionTarget
acctest.go:79: DependencyViolation errors deleting subnets and security group
--- SKIP: TestAccPipesPipe_selfManagedKafkaSourceLambdaFunctionTarget (0.00s)
=== RUN TestAccPipesPipe_sqsSourceRedshiftTarget
=== PAUSE TestAccPipesPipe_sqsSourceRedshiftTarget
=== RUN TestAccPipesPipe_SourceSageMakerTarget
acctest.go:79: aws_sagemaker_pipeline resource not yet implemented
--- SKIP: TestAccPipesPipe_SourceSageMakerTarget (0.00s)
=== RUN TestAccPipesPipe_sqsSourceBatchJobTarget
=== PAUSE TestAccPipesPipe_sqsSourceBatchJobTarget
=== RUN TestAccPipesPipe_sqsSourceECSTaskTarget
acctest.go:79: ValidationException: [numeric instance is lower than the required minimum (minimum: 1, found: 0)]
--- SKIP: TestAccPipesPipe_sqsSourceECSTaskTarget (0.00s)
=== CONT TestAccPipesPipe_basicSQS
=== CONT TestAccPipesPipe_tags
=== CONT TestAccPipesPipe_enrichmentParameters
--- PASS: TestAccPipesPipe_basicSQS (106.62s)
=== CONT TestAccPipesPipe_roleARN
--- PASS: TestAccPipesPipe_tags (142.38s)
=== CONT TestAccPipesPipe_namePrefix
--- PASS: TestAccPipesPipe_enrichmentParameters (158.63s)
=== CONT TestAccPipesPipe_nameGenerated
--- PASS: TestAccPipesPipe_roleARN (132.92s)
=== CONT TestAccPipesPipe_sourceParameters_filterCriteria
--- PASS: TestAccPipesPipe_nameGenerated (84.64s)
=== CONT TestAccPipesPipe_activeMQSourceStepFunctionTarget
--- PASS: TestAccPipesPipe_namePrefix (100.89s)
=== CONT TestAccPipesPipe_sqsSourceBatchJobTarget
--- PASS: TestAccPipesPipe_sqsSourceBatchJobTarget (170.14s)
=== CONT TestAccPipesPipe_sqsSourceRedshiftTarget
--- PASS: TestAccPipesPipe_sourceParameters_filterCriteria (273.14s)
=== CONT TestAccPipesPipe_rabbitMQSourceEventBusTarget
--- PASS: TestAccPipesPipe_sqsSourceRedshiftTarget (299.32s)
=== CONT TestAccPipesPipe_kinesisSourceAndTarget
--- PASS: TestAccPipesPipe_kinesisSourceAndTarget (76.95s)
=== CONT TestAccPipesPipe_dynamoDBSourceCloudWatchLogsTarget
--- PASS: TestAccPipesPipe_dynamoDBSourceCloudWatchLogsTarget (82.84s)
=== CONT TestAccPipesPipe_desiredState
--- PASS: TestAccPipesPipe_desiredState (189.01s)
=== CONT TestAccPipesPipe_enrichment
--- PASS: TestAccPipesPipe_enrichment (171.56s)
=== CONT TestAccPipesPipe_description
--- PASS: TestAccPipesPipe_activeMQSourceStepFunctionTarget (1038.32s)
=== CONT TestAccPipesPipe_disappears
--- PASS: TestAccPipesPipe_rabbitMQSourceEventBusTarget (779.00s)
=== CONT TestAccPipesPipe_targetParameters_inputTemplate
--- PASS: TestAccPipesPipe_disappears (86.23s)
=== CONT TestAccPipesPipe_targetUpdate
--- PASS: TestAccPipesPipe_description (209.32s)
--- PASS: TestAccPipesPipe_targetParameters_inputTemplate (160.39s)
--- PASS: TestAccPipesPipe_targetUpdate (145.67s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/pipes 1519.376s
@jordanfinners Thanks for the contribution 🎉 👏. I changed the names of some of the nested |
This functionality has been released in v5.6.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! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Relations
Closes #28153.
Closes #31330.
Closes #32018.
Output from Acceptance Testing
I've got most of the tests working however I'm having issues with, I don't have much time anymore to dedicate to debugging these, so need some help with these please @ewbankkit:
Overall: