Skip to content

Commit

Permalink
feat: update readme.md remove testlambda.py
Browse files Browse the repository at this point in the history
  • Loading branch information
XargsUK committed Feb 26, 2024
1 parent 5bd31fd commit 8322c79
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 153 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,15 @@ This python script can be run locally or deployed as an AWS Lambda function.

| Name | Description | Example |
|-------------------|----------------------------------------------------------------|-----------------------------------------------------|
| s3_bucket | Name of the S3 bucket to export to. | `awsconfigs-bucket` |
| assume_role_name | Name of role used to assume into Management Accounts | `AccountSwitcherLambdaRole` |
| role_names | Role names to generate configs for | `OrganizationAccountAccessRole,ManagedOrg/ReadOnly` |
| session_name | Session name when assuming the role in the management acccount | `RoleSwitcherLambdav2` |
| payer_account_ids | List of AWS account IDs | `0123456789012,1234567890123` |
| S3_BUCKET | The name of the S3 bucket where the configurations will be stored (if not running locally). | `awsconfigs-bucket` |
| ASSUME_ROLE | The role name to be assumed in each payer account. | `AccountSwitcherLambdaRole` |
| ROLE_NAMES | Comma-separated role names for which the configurations will be generated. | `Admin,Developer,ReadOnly` |
| SESSION_NAME | The session name to use when assuming roles. | `RoleSwitcherLambdav2` |
| PAYER_ACCOUNT_IDS | Comma-separated AWS payer account IDs. | `123456789012,210987654321` |
| OU_OVERRIDES | JSON string of organizational unit (OU) ID to name mappings for overrides. | `{"ou-xyz1-abcdefgh":"Engineering","ou-xyz2-abcdefgh":"Marketing"}` |
| running_locally | Set true for Local execution, false for Lambda. | `true` |
| AWS_REGION | The AWS region to use for the Lambda function. | `us-west-2` |
| AWS_PROFILE | The AWS profile to use for the Lambda function. | `default` |

#### Local Execution

Expand Down
1 change: 0 additions & 1 deletion lambda_handler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import json
from library import util, aws, storage
from library.conf_gen import ConfigGenerator

Expand Down
147 changes: 0 additions & 147 deletions testlambda.py

This file was deleted.

0 comments on commit 8322c79

Please sign in to comment.