Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(SIGSECOPS-584): add openId connect #44

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Create assume_role.yml
rohithak18 authored Jan 6, 2025
commit 67e364336f18f8aaf1504ffa0a4d1da4618dd0b2
41 changes: 41 additions & 0 deletions src/commands/assume_role.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
description: >
Assume a role in a account and create temporary credentials for aws authentication
parameters:
role:
description: aws role name to assume
default: ""
type: string
account_id:
description: in which account the role should be assumed
default: ""
type: string
profile:
description: aws profile name
default: cdk
type: string
default_region:
description: default region for the generated profile
default: eu-central-1
type: string
debug:
description: print assumed role in pipeline
default: true
type: boolean
assume_role_enabled:
description: enable assume role
default: true
type: boolean
steps:
- aws-cli/install
- when:
condition: << parameters.assume_role_enabled >>
steps:
- run:
name: Assume Role
environment:
ROLE_NAME: << parameters.role >>
ACCOUNT_ID: << parameters.account_id >>
PROFILE: << parameters.profile >>
DEFAULT_REGION: << parameters.default_region >>
DEBUG: << parameters.debug >>
command: <<include(scripts/assume-role.sh)>>