--- layout: "aws" page_title: "AWS: aws_codepipeline" sidebar_current: "docs-aws-resource-codepipeline" description: |- Provides a CodePipeline --- # aws\_codepipeline Provides a CodePipeline. ~> **NOTE on `aws_codepipeline`:** - the `GITHUB_TOKEN` environment variable must be set if the GitHub provider is specified. ## Example Usage ```hcl resource "aws_s3_bucket" "foo" { bucket = "test-bucket" acl = "private" } resource "aws_iam_role" "foo" { name = "test-role" assume_role_policy = < **Note:** The input artifact of an action must exactly match the output artifact declared in a preceding action, but the input artifact does not have to be the next action in strict sequence from the action that provided the output artifact. Actions in parallel can declare different output artifacts, which are in turn consumed by different following actions. ## Attributes Reference The following attributes are exported: * `id` - The codepipeline ID. ## Import CodePipelines can be imported using the name, e.g. ``` $ terraform import aws_codepipeline.foo example ```