Skip to content

Repository files navigation

Compatibility

This module requires Terraform 0.13.1 or later. Older Terraform versions are not supported.

Requirements

Name Version
terraform >= 0.13.1
aws >= 3.63
random >= 3.0

Providers

Name Version
aws >= 3.63
random >= 3.0

Modules

No modules.

Resources

Name Type
aws_cloudwatch_event_rule.this resource
aws_cloudwatch_event_target.this resource
aws_codepipeline.this resource
aws_codepipeline_webhook.this resource
aws_codestarnotifications_notification_rule.this resource
aws_iam_role.cloudwatch_event resource
aws_iam_role.pipeline resource
aws_iam_role_policy.inline_policy resource
aws_s3_bucket.this resource
aws_s3_bucket_notification.this resource
random_string.webhook_secret resource
aws_iam_policy_document.pipeline data source
aws_region.current data source

Inputs

Name Description Type Default Required
cloudwatch_event_pattern (Optional) Required if create_cloudwatch_event_rule = true. The event pattern described a JSON object. string null no
create_cloudwatch_event_rule (Required) Create CloudWatch Event Rule to automatically start pipeline when a change occurs. bool false no
create_notification_rule (Required) Create CloudWatch Event Rule to automatically start pipeline when a change occurs. bool false no
name (Required) Name os resources string n/a yes
notification_rule_event_type_ids (Required) A list of event types associated with this notification rule. list(any)
[
"codepipeline-pipeline-pipeline-execution-failed",
"codepipeline-pipeline-pipeline-execution-canceled",
"codepipeline-pipeline-pipeline-execution-superseded"
]
no
notification_rule_target (Optional) Configuration blocks containing notification target information. Can be specified multiple times. At least one target must be specified on creation. list(any) [] no
pipeline_type (Optional) Type of the pipeline. Possible values are: V1 and V2. Default value is V1. string "V2" no
role_arn (Optional) Supply an existing role string "" no
role_name (Optional) Custom role name string "" no
s3_bucket_name (Required) S3 bucket name string n/a yes
stages (Required) This list describes each stage of the build any n/a yes
tags (Optional) Implements the common tags scheme map(any) {} no
webhook_authentication (Optional) The type of authentication to use. One of IP, GITHUB_HMAC, or UNAUTHENTICATED string "GITHUB_HMAC" no
webhook_enabled (Required) Set to false to prevent the module from creating any webhook resources bool false no
webhook_filter_json_path (Optional) The JSON path to filter on string "$.ref" no
webhook_filter_match_equals (Optional) The value to match on (e.g. refs/heads/{Branch}) string "refs/heads/{Branch}" no
webhook_target_action (Optional) The name of the action in a pipeline you want to connect to the webhook. The action must be from the source (first) stage of the pipeline string "Source" no

Outputs

Name Description
arn The codepipeline arn.
bucket_arn The ARN of the S3 Bucket project.
bucket_name The ARN of the S3 Bucket project.
cloudwatch_event_role_arn ARN of the CloudWatch Event role created if var.create_cloudwatch_event_rule is true
cloudwatch_event_role_name Name of the CloudWatch Event role created if var.create_cloudwatch_event_rule is true
id The codepipeline ID.
role_arn ARN of the pipeline role
role_name Name of the pipeline role created if var.role_arn is not supplied
webhook_secret Name of the CloudWatch Event role created if var.create_cloudwatch_event_rule is true
webhook_url Name of the CloudWatch Event role created if var.create_cloudwatch_event_rule is true

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages