Skip to main content

bootstrappable-cloud9

Project description

Bootstrappable Cloud9 Instance with SSM

Simple stack example:

export class Cloud9EnvironmentExampleStack extends cdk.Stack {
  constructor(scope: Construct, id: string, props?: cdk.StackProps) {
    super(scope, id, props);

    // Create L2 Cloud9 Environment
    const environment = new Cloud9Environment(this, "environment", {
      name: "example-environment",
      description: "An example environment",
      imageId: Cloud9AmiType.AMZN_LINUX_2,
      connectionType: Cloud9ConnectionType.SSM,
      ownerArn: "<YOUR_ARN>",
    });

    // Existing CodeCommit Repository
    const repository = Repository.fromRepositoryName(this, "test", "test-repo");
    // Clone Git Repositories within Cloud9 Environment
    environment.cloneCodeCommitRepo(repository, "test");
    environment.cloneGitRepo(
      "https://github.com/aws-samples/aws-copilot-pubsub",
      "copilot"
    );

    environment.addInitCommands(["sudo yum update -y", "sudo yum install -y jq"]);

    //-----------------------------------------------------
    //-                  Outputs                         -
    //-----------------------------------------------------
    new cdk.CfnOutput(this, "environmentUrl", {
      value: environment.environmentUrl,
      description: "The URL of the environment",
    });
  }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bootstrappable-cloud9-0.0.3.tar.gz (36.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bootstrappable_cloud9-0.0.3-py3-none-any.whl (35.1 kB view details)

Uploaded Python 3

File details

Details for the file bootstrappable-cloud9-0.0.3.tar.gz.

File metadata

  • Download URL: bootstrappable-cloud9-0.0.3.tar.gz
  • Upload date:
  • Size: 36.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for bootstrappable-cloud9-0.0.3.tar.gz
Algorithm Hash digest
SHA256 90079d4dfd24adf6979ff2fd971cc0590b11b634358d95ea4c990725362f2ed4
MD5 d8cff8f7812aef91185d5cb20f48d19f
BLAKE2b-256 6906d472263085c8dc5f7790b89ec9deea13f7c362c4578aa22898442b2b0814

See more details on using hashes here.

File details

Details for the file bootstrappable_cloud9-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for bootstrappable_cloud9-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c3b88febacff71895be2d46d6b8cc62545344c6ecb9f44c0a10145ce1cd51f5d
MD5 388037e6816cdf1f85eec14cd8476d4e
BLAKE2b-256 63415bab24e8c4bacfcacbfc13ca8688f216b73756d4ada3e3fafcbfb87c6ad9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page