Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Complete Example

This example demonstrates a full deployment of the Aikido Security integration with all features enabled.

Features Enabled

  • CSPM (Cloud Security Posture Management)
  • ECR (Elastic Container Registry) scanning
  • EBS (Elastic Block Store) scanning

Prerequisites

  1. AWS Organizations enabled in your management account
  2. AWS CLI configured with appropriate credentials
  3. Aikido Security account with an External ID

Usage

  1. Get your External ID from Aikido Security

    Log into your Aikido dashboard and navigate to the AWS integration setup to obtain your External ID.

  2. Find your Organization structure

    # Get your organization root ID
    aws organizations list-roots
    
    # List OUs (if you want to deploy to specific OUs instead of root)
    aws organizations list-organizational-units-for-parent --parent-id r-xxxx
  3. Configure variables

    cp terraform.tfvars.example terraform.tfvars
    # Edit terraform.tfvars with your values
  4. Deploy

    terraform init
    terraform plan
    terraform apply
  5. Configure Aikido

    After deployment, use the output ARNs to complete the integration in the Aikido dashboard:

    terraform output

What Gets Created

Management Account

  • IAM Role: AikidoSecurityReadonlyRole (CSPM)
  • IAM Role: AikidoSecurityEcrScanningRole (ECR scanning)
  • IAM Role: AikidoSecurityEbsScanningRole (EBS scanning)
  • IAM Policies for each role
  • CloudFormation StackSet for member accounts

Member Accounts (via StackSet)

The same roles and policies are automatically deployed to all member accounts in the specified organizational units, excluding any accounts in the excluded_account_ids list.

Cleanup

To remove the Aikido integration:

terraform destroy

Note: You may need to manually delete stack instances from the StackSet if they don't delete automatically.

README.md updated successfully

Resources

No resources.

Inputs

Name Description Type Default Required
excluded_account_ids List of AWS account IDs to exclude from Aikido integration list(string) [] no
external_id External ID provided by Aikido Security for role assumption string n/a yes
organizational_unit_ids List of organization root or OU IDs to deploy to list(string) n/a yes

Outputs

Name Description
cspm_role_arn ARN of the Aikido CSPM role - provide this to Aikido
ebs_role_arn ARN of the Aikido EBS scanning role - provide this to Aikido
ecr_role_arn ARN of the Aikido ECR scanning role - provide this to Aikido