You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: doc_source/action-reference-CloudFormation.md
+3-7Lines changed: 3 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -60,17 +60,13 @@ Required: Conditional
60
60
**RoleArn**
61
61
Required: Conditional
62
62
The `RoleArn` is the ARN of the IAM service role that AWS CloudFormation assumes when it operates on resources in the specified stack\.`RoleArn` is not applied when executing a change set\. If you do not use CodePipeline to create the change set, make sure that the change set or stack has an associated role\.
63
+
This role must be in the same account as the role for the action that is running, as configured in the action declaration `RoleArn`\.
63
64
This property is required for the following action modes:
64
65
+ CREATE\_UPDATE
65
66
+ REPLACE\_ON\_FAILURE
66
67
+ DELETE\_ONLY
67
68
+ CHANGE\_SET\_REPLACE
68
-
69
-
**Note**
70
-
This role must be in the same account as the role that the action is running as, configured in the action declaration `RoleArn`\.
71
-
72
-
**Note**
73
-
CloudFormation is given an S3 signed URL to the template, and therefore this `RoleArn` does not need permission to access the artifact bucket\. However, the action `RoleArn`_does_ need permission to access the artifact bucket, in order to generate the signed URL\.
69
+
AWS CloudFormation is given an S3\-signed URL to the template; therefore, this `RoleArn` does not need permission to access the artifact bucket\. However, the action `RoleArn`*does* need permission to access the artifact bucket, in order to generate the signed URL\.
74
70
75
71
**TemplatePath**
76
72
Required: Conditional
@@ -200,4 +196,4 @@ InputArtifacts:
200
196
201
197
The following related resources can help you as you work with this action\.
202
198
+[Configuration Properties Reference](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/continuous-delivery-codepipeline-action-reference.html) – This reference chapter in the *AWS CloudFormation User Guide* provides more descriptions and examples for these CodePipeline parameters\.
203
-
+[AWS CloudFormation API Reference](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/) – The [CreateStack](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateStack.html) parameter in the *AWS CloudFormation API Reference* describes stack parameters for AWS CloudFormation templates\.
199
+
+[AWS CloudFormation API Reference](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/) – The [CreateStack](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateStack.html) parameter in the *AWS CloudFormation API Reference* describes stack parameters for AWS CloudFormation templates\.
Copy file name to clipboardExpand all lines: doc_source/action-reference-CodestarConnectionSource.md
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,22 @@
1
1
# CodeStarSourceConnection for Bitbucket, GitHub, and GitHub Enterprise Server actions<aname="action-reference-CodestarConnectionSource"></a>
2
2
3
-
Triggers a pipeline when a new commit is made on a third\-party source code repository\. The source action retrieves code changes when a pipeline is manually run or when a webhook event is sent from the source provider\.
3
+
Triggers a pipeline when a new commit is made on a third\-party source code repository\. The source action retrieves code changes when a pipeline is manually run or when a webhook event is sent from the source provider\.
4
4
5
5
**Note**
6
6
This feature is not available in the Asia Pacific \(Hong Kong\) or Europe \(Milan\) Region\. To use other source actions available in that Region, see [Source action integrations](integrations-action-type.md#integrations-source)\.
7
7
8
8
Connections can associate your AWS resources with the following third\-party repositories:
9
-
+ Bitbucket \(through the **Bitbucket** provider option in the CodePipeline console\)
9
+
+ Bitbucket Cloud \(through the **Bitbucket** provider option in the CodePipeline console\)
10
+
**Note**
11
+
You can create connections to a Bitbucket Cloud repository\. Installed Bitbucket provider types, such as Bitbucket Server, are not supported\.
10
12
+ GitHub and GitHub Enterprise Cloud \(through the **GitHub \(Version 2\)** provider option in the CodePipeline console\)
11
13
+ GitHub Enterprise Server \(through the **GitHub Enterprise Server** provider option in the CodePipeline console\)
12
14
13
15
**Note**
14
16
Each connection supports all of the repositories you have with that provider\. You only need to create a new connection for each provider type\.
15
17
18
+
Connections allow your pipeline to detect source changes through the third\-party provider's installation app\. For example, webhooks are used to subscribe to GitHub event types and can be installed on an organization, a repository, or a GitHub App\. Your connection installs a repository webhook on your GitHub App that subscribes to GitHub push type events\.
19
+
16
20
After a code change is detected, you have the following options for passing the code to subsequent actions:
17
21
+ Default: Like other existing CodePipeline source actions, `CodeStarSourceConnection` can output a ZIP file with a shallow copy of your commit\.
18
22
+ Full clone: `CodeStarSourceConnection` can also be configured to output a URL reference to the repo for subsequent actions\.
The **Snyk** action in CodePipeline automates detecting and fixing security vulnerabilities in your open source code\. You can use Snyk with application source code in your third\-party repository, such as GitHub or Bitbucket, or with images for container applications\. Your action will scan and report on vulnerability levels and alerts that you configure\.
+**Description:** The files that make up the output artifact for the invoke action\.
35
+
36
+
## See also<aname="action-reference-Snyk-links"></a>
37
+
38
+
The following related resources can help you as you work with this action\.
39
+
+ For more information about using Snyk actions in CodePipeline, refer to [Automate vulnerability scanning in CodePipeline with Snyk](https://snyk.io/blog/automate-vulnerability-scanning-in-aws-codepipeline-with-snyk/)\.
Copy file name to clipboardExpand all lines: doc_source/action-types.md
+13-4Lines changed: 13 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -47,9 +47,18 @@ Before you create your action definition file, executor resources, and action ty
47
47
48
48
### Step 1: Choose your integration model<aname="action-types-choose-model"></a>
49
49
50
-
Choose your integration model and then create the configuration for that model\. After you choose the integration model, you must configure your integration resources\.
51
-
+ For the Lambda integration model, you create a Lambda function and add permissions\. Add permissions to your integrator Lambda function to provide the CodePipeline service with permissions to invoke it using the CodePipeline service principal: `codepipeline.amazonaws.com`\. The permissions can be added using CloudFormation or the command line\.
52
-
+[Sample code for adding permission via CloudFormation](https://code.amazon.com/packages/DuckHawkJobInvokerServiceInfrastructure/blobs/b9f9fa508c0c901e87e0909d05ad61ea49757b9b/--/configuration/cloudFormation/lambdaBasedTestRoles.template.yml#L72-L77)
50
+
Choose your integration model and then create the configuration for that model\. After you choose the integration model, you must configure your integration resources\.
51
+
+ For the Lambda integration model, you create a Lambda function and add permissions\. Add permissions to your integrator Lambda function to provide the CodePipeline service with permissions to invoke it using the CodePipeline service principal: `codepipeline.amazonaws.com`\. The permissions can be added using AWS CloudFormation or the command line\.
52
+
+ Example for adding permissions using AWS CloudFormation:
+ [Documentation for command line](https://docs.aws.amazon.com/cli/latest/reference/lambda/add-permission.html)
54
63
+ For the job worker integration model, you create an integration with a list of allowed accounts where the job worker polls for jobs with the CodePipeline APIs\.
55
64
@@ -265,7 +274,7 @@ Your customers can optionally use the CLI to add the action type to their pipeli
265
274
266
275
1. To test your action, commit a change to the source specified in the source stage of the pipeline or follow the steps in [Manually Start a Pipeline](https://docs.aws.amazon.com/codepipeline/latest/userguide/how-to-manually-start.html)\.
267
276
268
-
To create a pipeline with your action type, follow the steps in [Create a Pipeline](https://docs.aws.amazon.com/codepipeline/latest/userguide/how-to-create-pipelines) and choose your action type from as many stages as you will test\.
277
+
To create a pipeline with your action type, follow the steps in [Create a pipeline in CodePipeline](pipelines-create.md) and choose your action type from as many stages as you will test\.
269
278
270
279
## View an action type<a name="action-types-view-cli"></a>
Copy file name to clipboardExpand all lines: doc_source/actions-retry.md
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -4,17 +4,19 @@ In AWS CodePipeline, an action is a task performed on an artifact in a stage\. A
4
4
5
5
You can retry the latest failed actions in a stage without having to run a pipeline again from the beginning\. You do this by retrying the stage that contains the actions\. You can retry a stage immediately after any of actions fail\. All actions that are still in progress continue their work, and failed actions are triggered once again\.
6
6
7
+
**Note**
8
+
In the following cases, you may not be able to retry actions:
9
+
The overall pipeline structure changed after an action failed\.
10
+
Another retry attempt in the stage is already in progress\.
11
+
12
+
In cases where you have edited your pipeline structure and so the failed action cannot be retried, choose **Release change** to manually start the pipeline\.
13
+
7
14
If you are using the console to view a pipeline, a **Retry** button appears on the stage where the failed actions can be retried\.
8
15
9
16
![\[A stage that contains one or more failed actions displays a Retry button\]](http://docs.aws.amazon.com/codepipeline/latest/userguide/images/actions-retry-button.png)![\[A stage that contains one or more failed actions displays a Retry button\]](http://docs.aws.amazon.com/codepipeline/latest/userguide/)![\[A stage that contains one or more failed actions displays a Retry button\]](http://docs.aws.amazon.com/codepipeline/latest/userguide/)
10
17
11
18
If you are using the AWS CLI, you can use the get\-pipeline\-state command to determine whether any actions have failed\.
12
19
13
-
**Note**
14
-
In the following cases, you may not be able to retry actions:
15
-
The overall pipeline structure changed after an action failed\.
16
-
Another retry attempt in the stage is already in progress\.
Copy file name to clipboardExpand all lines: doc_source/best-practices.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ At any time, you can integrate your preferred IDE into your AWS CodeStar dashboa
81
81
82
82
### Use CodePipeline to compile, build, and test code with CodeBuild<aname="use-cases-codebuild"></a>
83
83
84
-
CodeBuild is a managed build service in the cloud that lets you build and test your code without a server or system\. Use CodePipeline with CodeBuild to automate running revisions through the pipeline for continuous delivery of software builds whenever there is a change to the source code\. For more information, see [Use AWS CodePipeline with CodeBuild to test code and run builds](https://docs.aws.amazon.com/codebuild/latest/userguide/how-to-create-pipeline.html)\.
84
+
CodeBuild is a managed build service in the cloud that lets you build and test your code without a server or system\. Use CodePipeline with CodeBuild to automate running revisions through the pipeline for continuous delivery of software builds whenever there is a change to the source code\. For more information, see [Use CodePipeline with CodeBuild to test code and run builds](https://docs.aws.amazon.com/codebuild/latest/userguide/how-to-create-pipeline.html)\.
85
85
86
86
### Use CodePipeline with Amazon ECS for continuous delivery of container\-based applications to the cloud<aname="use-cases-ecs"></a>
Copy file name to clipboardExpand all lines: doc_source/connections-bitbucket.md
+12-4Lines changed: 12 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,10 @@ Connections allow you to authorize and establish configurations that associate y
5
5
**Note**
6
6
This feature is not available in the Asia Pacific \(Hong Kong\) or Europe \(Milan\) Region\. To use other source actions available in that Region, see [Source action integrations](integrations-action-type.md#integrations-source)\.
7
7
8
-
To add a Bitbucket source action in CodePipeline, you can choose either to:
8
+
To add a Bitbucket Cloud source action in CodePipeline, you can choose either to:
9
9
+ Use the CodePipeline console **Create pipeline** wizard or **Edit action** page to choose the **Bitbucket** provider option\. See [Create a connection to Bitbucket \(console\)](#connections-bitbucket-console) to add the action\. The console helps you create a connections resource\.
10
+
**Note**
11
+
You can create connections to a Bitbucket Cloud repository\. Installed Bitbucket provider types, such as Bitbucket Server, are not supported\.
10
12
+ Use the CLI to add the action configuration for the `CreateSourceConnection` action with the `Bitbucket` provider as follows:
11
13
+ To create your connections resources, see [Create a connection to Bitbucket \(CLI\)](#connections-bitbucket-cli) to create a connections resource with the CLI\.
12
14
+ Use the `CreateSourceConnection` example action configuration in [CodeStarSourceConnection for Bitbucket, GitHub, and GitHub Enterprise Server actions](action-reference-CodestarConnectionSource.md) to add your action as shown in [Create a pipeline \(CLI\)](pipelines-create.md#pipelines-create-cli)\.
@@ -18,6 +20,9 @@ Before you begin:
18
20
+ You must have created an account with the provider of the third\-party repository, such as Bitbucket\.
19
21
+ You must have already created a third\-party code repository, such as a Bitbucket repository\.
20
22
23
+
**Note**
24
+
Bitbucket connections only provide access to repositories owned by the Bitbucket account that was used to create the connection\.
25
+
21
26
**Topics**
22
27
+[Create a connection to Bitbucket \(console\)](#connections-bitbucket-console)
23
28
+[Create a connection to Bitbucket \(CLI\)](#connections-bitbucket-cli)
@@ -27,7 +32,7 @@ Before you begin:
27
32
Use these steps to use the CodePipeline console to add a connections action for your Bitbucket repository\.
28
33
29
34
**Note**
30
-
Bitbucket connections only provide access to repositories owned by the Bitbucket account that was used to create the connection\.
35
+
You can create connections to a Bitbucket Cloud repository\. Installed Bitbucket provider types, such as Bitbucket Server, are not supported\.
31
36
32
37
### Step 1: Create or edit your pipeline<aname="connections-bitbucket-console-action"></a>
33
38
@@ -62,10 +67,10 @@ You install one app for all of your connections to a particular provider\. If yo
62
67
1. If the login page for Bitbucket displays, log in with your credentials and then choose to continue\.
63
68
64
69
1. On the app installation page, a message shows that the AWS CodeStar app is trying to connect to your Bitbucket account\. Choose **Grant access**\.
![\[Console screenshot showing request for access.\]](http://docs.aws.amazon.com/codepipeline/latest/userguide/images/bitbucket-access-popup.png)![\[Console screenshot showing request for access.\]](http://docs.aws.amazon.com/codepipeline/latest/userguide/)![\[Console screenshot showing request for access.\]](http://docs.aws.amazon.com/codepipeline/latest/userguide/)
66
71
67
72
1. In **Bitbucket apps**, the connection ID for your new installation is displayed\. Choose **Connect**\. The created connection displays in the connections list\.
0 commit comments