@aws-cdk/aws-codestar

v1.204.0
The CDK Construct Library for AWS::CodeStar
aws cdk constructs AWS::CodeStar aws-codestar

AWS::CodeStar Construct Library


End-of-Support

AWS CDK v1 has reached End-of-Support on 2023-06-01. This package is no longer being updated, and users should migrate to AWS CDK v2.

For more information on how to migrate, see the Migrating to AWS CDK v2 guide.


GitHub Repository

To create a new GitHub Repository and commit the assets from S3 bucket into the repository after it is created:

import * as codestar from '@aws-cdk/aws-codestar';
import * as s3 from '@aws-cdk/aws-s3'

new codestar.GitHubRepository(this, 'GitHubRepo', {
  owner: 'aws',
  repositoryName: 'aws-cdk',
  accessToken: SecretValue.secretsManager('my-github-token', {
    jsonField: 'token',
  }),
  contentsBucket: s3.Bucket.fromBucketName(this, 'Bucket', 'bucket-name'),
  contentsKey: 'import.zip',
});

Update or Delete the GitHubRepository

At this moment, updates to the GitHubRepository are not supported and the repository will not be deleted upon the deletion of the CloudFormation stack. You will need to update or delete the GitHub repository manually.

npm i @aws-cdk/aws-codestar

Metadata

  • Apache-2.0
  • >= 14.15.0
  • Amazon Web Services
  • released 6/19/2023

Downloads