Skip to main content

AWS CDK Construct Library to create an instance role for instances managed by SSM and capable of joining an AWS managed domain.

Project description

cdk-library-managed-instance-role

build

This CDK Construct Library includes a construct (ManagedInstanceRole) which creates an AWS instance profile. By default this instance profile includes the basic policies required for instance management in SSM and the ability to Domain Join the instance.

The purpose of this CDK Construct Library is to ease the creation of instance roles by not needing to code the inclusion of baseline management roles for evey single different role implementation every time. Instance profiles only support a single role so its important the role includes all required access. This construct allows making additions to those baseline policies with ease.

The construct defines an interface (IManagedInstanceRoleProps) to configure the managed policies of the role as well as manage the inclusion of the default roles.

Dev

Pre-reqs:

You will need:

  • npm installed on your machine
  • AWS CDK installed on your machine
  • python installed on your machine
  • dotnet installed on your machine
  • a github account

This project is managed with projen. Modify the .projenrc.js file and run npx projen. You can also modify this README file and the src code directory as needed. Github actions take care of publishing utilizing the automatically created workflows from projen.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

Built Distribution

Supported by

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