olOpsLyft Docs

AWS

Connect your AWS accounts to OpsLyft optimization.

Contents

Introduction

OpsLyft reads your AWS accounts with a read-only IAM role that you create in each account.

OpsLyft assumes the role on a schedule and reads configuration, tags and sizing.

Values

NameValue
OPSLYFT_PRINCIPAL_ARNarn:aws:iam::612488371952:root
TEMPLATE_URLhttps://aws-optimization-integration-permissions-template.s3.amazonaws.com/customer-onboarding-polling.yaml
OPSLYFT_ROLEOpsLyftOptimizationRole
STACK_NAMEopslyft-optimization-onboarding
STACKSET_NAMEopslyft-optimization-onboarding-set

Choose your path

OpsLyft needs the role to be attached in every account you want to see optimization data for. Three options (or a combination of them) for integration:

  1. Whole organization with a StackSet (preferred): deploys the role to every current and future account in your organization except the management account. Service-managed StackSets do not deploy to the management account, so deploy a separate stack there.
  2. Specific OUs: as option 1, with your OU IDs instead of the root ID.
  3. Individual accounts: deploy one stack in each account.

Integration Steps

Whole organization (or some OUs) - preferred

Individual accounts (repeat in each account)

Update the role later

Set up your terminal

Share with us

Send OpsLyft these values. OpsLyft assumes your role, so the values include its ARN.

FieldWhat to sendHow to get it
Organization IDYour organization ID. Leave empty if you have no organization or do not want it listed.Check the organization and management account IDs (first value)
Management account IDThe account where you deployed with ManagementAccount set to yes. Without it we cannot list your organization's accounts and you list them yourself.Check the organization and management account IDs (second value)
Organizational unitsOptional. OU IDs (ou-...) if you want only some OUs. Empty means the whole organization.Enter manually
Account IDsThe 12-digit IDs of accounts outside an organization, or ones you want to list yourself.echo "$ACCOUNT_ID" in that account
Accounts to excludeAccounts OpsLyft must never read, even if they are in your organization or have the role.Enter manually
RegionsLeave empty to cover all regions enabled in each account (needs ec2:DescribeRegions), or list the regions, optionally with regions to leave out.Enter manually
ExternalIdThe UUID you generated. Say so if the management account's value, or any account's, differs.echo "$EXTERNAL_ID"
Role ARNThe role's ARN in each account. If every account uses the same role name, say so and send one ARN with the account IDs.Show the role ARN in each account you send
How you deployedStackSet, stacks, script or console, with the StackSet or stack IDs if you have them. For reference only.Show the StackSet ID (StackSet only), Show the stack ID

After you send it: OpsLyft reads your accounts from the next scheduled read. A new account first shows as waiting for access, then becomes active by itself once OpsLyft can use the role.

Reference commands

Troubleshooting

Remove access

On this page