Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.
/ aws-profiler Public archive

A simple npx command to set up aws config during a CICD environment

License

Notifications You must be signed in to change notification settings

syngenta/aws-profiler

Repository files navigation

AWS CICD Profiler

A simple npx command to set up aws config during a CICD environment

Features

  • Ability to create AWS config files for use with roles
  • Support both yml and json files

Installation & Usage

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js. Node.js 0.10 or higher is required.

$ npx @syngenta-digital/acp --key $AWS_ACCESS_KEY_ID --secret $AWS_SECRET_ACCESS_KEY --file some-dir/profiles.yml

# or if you have already set AWS environment variables

$ npx @syngenta-digital/acp --file some-dir/profiles.json
Flag Name Required Description
file true The file which lists all the profiles; relative path. Supports yml or json
key false The AWS access key of source account; can use environment variables (AWS_ACCESS_KEY_ID)
secret false The AWS access secret of source account; can use environment variables (AWS_SECRET_ACCESS_KEY)

Example YML File

profiles:
    -
        name: dev
        account: 111222333444
        role: AutomatedCICDUser

Example JSON File

{
    "profiles": [
        {
            "name": "dev",
            "account": 111222333444,
            "role": "AutomatedCICDUser"
        }
    ]
}

About

A simple npx command to set up aws config during a CICD environment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published