feat(codepipeline): add V2 pipeline and CodeDeploy deployment support#97
Open
feat(codepipeline): add V2 pipeline and CodeDeploy deployment support#97
Conversation
Major enhancement to CodePipeline module adding V2 pipeline support, CodeStarSourceConnection, optional build stage, and CodeDeploy deployment. ## New Features ### Pipeline V2 Support - Add `pipeline_type` variable (V1/V2, default: V2) - Add `execution_mode` for V2 pipelines (QUEUED/SUPERSEDED/PARALLEL) ### CodeStarSourceConnection (GitHub V2) - Support `CodeStarSourceConnection` provider (in addition to GitHub V1) - Handle both `codestar-connections` and `codeconnections` ARN formats - Configurable `detect_changes` and `output_artifact_format` - Custom artifact names and action namespaces ### Optional Build Stage - Add `enable_build_stage` flag (default: false) - Support pipelines without CodeBuild (Source → Deploy directly) - Backward compatible with existing CodeBuild configurations ### CodeDeploy Deployment Stage - Add `enable_deploy_stage` flag (default: true) - Support multiple CodeDeploy deployments in parallel - Configurable action names, namespaces, and run orders - Auto-configure IAM permissions for CodeDeploy operations ### Flexible Resource Management - Optional artifact bucket creation (`create_artifact_bucket`) - Optional service role creation (`create_service_role`) - Support using existing S3 buckets and IAM roles ### Enhanced IAM Permissions - Dynamic IAM policy based on enabled stages - CodeStarSourceConnection permissions - CodeBuild permissions (when enabled) - CodeDeploy permissions (when enabled) ## Breaking Changes None - all new features use optional parameters with sensible defaults. ## Migration Guide Existing configurations will continue to work without changes. To use new features, add the relevant variables to your configuration. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
🔍 Terraform Check Results📊 Summary✅ All checks passed!
🔍 TFLint Details (0 issue(s))🔒 Trivy Security Details (29 issue(s))👤 Pusher: @llama90 | 🔄 Action: |
Update basic test to use new variables: - Set source_provider = "GitHub" (V1) - Enable build stage explicitly - Disable deploy stage for basic test Fixes validation errors in basic test.
Contributor
🔍 Terraform Check Results📊 Summary✅ All checks passed!
🔍 TFLint Details (0 issue(s))🔒 Trivy Security Details (29 issue(s))👤 Pusher: @llama90 | 🔄 Action: |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Major enhancement to CodePipeline module adding V2 pipeline support, CodeStarSourceConnection, optional build stage, and CodeDeploy deployment.
New Features
Pipeline V2 Support
pipeline_typevariable (V1/V2, default: V2)execution_modefor V2 pipelines (QUEUED/SUPERSEDED/PARALLEL)CodeStarSourceConnection (GitHub V2)
CodeStarSourceConnectionprovider (in addition to GitHub V1)codestar-connectionsandcodeconnectionsARN formatsdetect_changesandoutput_artifact_formatOptional Build Stage
enable_build_stageflag (default: false)CodeDeploy Deployment Stage
enable_deploy_stageflag (default: true)Flexible Resource Management
create_artifact_bucket)create_service_role)Enhanced IAM Permissions
Breaking Changes
None - all new features use optional parameters with sensible defaults.
Migration Guide
Existing configurations will continue to work without changes.
To use new features, add the relevant variables to your configuration.
🤖 Generated with Claude Code