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.4.tar.gz (41.0 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.4-py3-none-any.whl (39.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bootstrappable-cloud9-0.0.4.tar.gz
  • Upload date:
  • Size: 41.0 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.4.tar.gz
Algorithm Hash digest
SHA256 2f15b7794c6ffb4647e4b3e48e3430ab7b18551551ceab1e267930e4c1f1a116
MD5 50d6fc8a204a8558d0cac426fce3f131
BLAKE2b-256 c8305fee6b1e78ea5c21cc71e01288d549cd90d9c36573c1b1fdfbcbbe359a84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bootstrappable_cloud9-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b7fe9eaa124bd26e4ee62a9897b3974e0d1bbec70309b62e6474338f865178ca
MD5 e110b649a72fda81a28b7b5bc3fa4280
BLAKE2b-256 e3e337c24abdf804f172e898fba816c2fe3d00671b8d8c99baffea8f94e42804

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