CloudFormation

The JIT Guard stack, in plain English

You deploy a small CloudFormation stack in your Identity Center management account. It creates two IAM roles that let JIT Guard grant temporary access and keep your account catalogue in sync.

For AWS administrators who own the Identity Center management account.

In one minute

  • Exactly two IAM roles. No instances, databases, buckets, VPCs, users, or permission sets.
  • Scoped trust. JIT Guard can only use the roles with your Customer ID as sts:ExternalId.
  • Limited blast radius. It can manage Identity Center groups and assignments and receive organisation events, but cannot touch your data, create users, or create or edit permission sets.

How it works

  1. 1

    You deploy the stack

    CloudFormation creates the two roles in your management account.

  2. 2

    JIT Guard assumes the role

    Its backend assumes its own access role, then your role with your Customer ID as sts:ExternalId.

  3. 3

    It grants time-bound access

    The first request for an account and permission set creates onejitguard-* group and assigns the permission set you chose. Every later request adds the user as a member of that group. An empty group grants nobody access.

  4. 4

    Access expires and is removed

    When the timer expires, JIT Guard removes the user's membership and audits the event. The reusable group and its assignment stay for the next request and are removed automatically when unused.

What you deploy

JitGuardRole

Management

JIT Guard assumes this role to manage reusable Identity Center groups and their account assignments, add and remove memberships, and read organisation discovery data. It never creates or edits permission sets.

Role name: jitguard

JitGuardEvents

Event forwarding

EventBridge assumes this role to forward organisation events to the JIT Guard event bus.

Role name: jitguard-events

The only parameter is your JIT Guard Customer ID.See both trust policies and every permission.

What we can and cannot do

Can

  • Create and delete the reusable Identity Center groups JIT Guard uses for access.
  • Add a user's membership to a group and remove it again.
  • Assign the permission set you chose to the group for the target account, and remove the assignment when the group is reclaimed.
  • Read your organisation structure and Identity Center configuration.
  • Manage EventBridge rules named jitguard-*.

Cannot

  • Read or change your EC2, S3, RDS, or other data-plane resources.
  • Create, edit, or delete IAM users, permission sets, or Identity Center users.
  • Assume any role other than the two roles in this stack.
  • Touch EventBridge rules that do not start with jitguard-.
  • Access your account without the ExternalId that matches your Customer ID.

Every action and the reason it is needed is listed in thetechnical reference.

What happens next

  1. 1

    Create an account and get your Customer ID

    Sign up or log in to the JIT Guard app. The Customer ID is the only value you pass to the stack.

  2. 2

    Deploy the stack

    Use the one-click deploy in the app, or run the CLI command inDeploy and manage from the CLI below.

  3. 3

    Verify and connect

    Return to the dashboard and click Connect. JIT Guard discovers the rest automatically. You can check the deployed object against the reference first.

Deploy and manage from the CLI

Show the create, update, and delete commands

The stack creates named IAM roles, so CloudFormation needs theCAPABILITY_NAMED_IAM capability. Replace<your-customer-id> with the lowercase UUID from the app.

Create

aws cloudformation create-stack \
  --stack-name jitguard-integration \
  --template-url https://jitguard-prod-public.s3.eu-west-1.amazonaws.com/cloudformation/jitguard-customer-template.yml \
  --parameters ParameterKey=CustomerId,ParameterValue=<your-customer-id> \
  --capabilities CAPABILITY_NAMED_IAM \
  --region eu-west-1

Update

aws cloudformation update-stack \
  --stack-name jitguard-integration \
  --template-url https://jitguard-prod-public.s3.eu-west-1.amazonaws.com/cloudformation/jitguard-customer-template.yml \
  --parameters ParameterKey=CustomerId,ParameterValue=<your-customer-id> \
  --capabilities CAPABILITY_NAMED_IAM \
  --region eu-west-1

Delete

aws cloudformation delete-stack \
  --stack-name jitguard-integration \
  --region eu-west-1

Deleting the stack removes only the two JIT Guard roles and their policies. It does not delete your Identity Center users or permission sets, or any group JIT Guard did not create.