AWS IAM token env var and projected volume? #7461
-
what is argo workflow syntax equivalent for below? ie create a workflow with assumed iam role, sts identity from the ec2 apiVersion: v1
kind: Pod
metadata:
name: awscli
namespace: security
spec:
containers:
- name: awscli
image: $image
command: ['sh', '-c', 'aws s3 ls s3://mybucket/']
env:
- name: AWS_ROLE_ARN
value: $role
- name: AWS_WEB_IDENTITY_TOKEN_FILE
value: /var/run/secrets/eks.amazonaws.com/serviceaccount/token
volumeMounts:
- mountPath: /var/run/secrets/eks.amazonaws.com/serviceaccount
name: aws-iam-token
readOnly: true
volumes:
- name: aws-iam-token
projected:
defaultMode: 420
sources:
- serviceAccountToken:
audience: sts.amazonaws.com
expirationSeconds: 86400
path: token |
Beta Was this translation helpful? Give feedback.
Answered by
terrytangyuan
Dec 22, 2021
Replies: 1 comment 3 replies
-
You can just specify any required environment variables, service accounts, volume mounts as part of your container spec in your template. https://argoproj.github.io/argo-workflows/fields/#workflowspec |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
terrytangyuan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can just specify any required environment variables, service accounts, volume mounts as part of your container spec in your template. https://argoproj.github.io/argo-workflows/fields/#workflowspec