Created
August 5, 2020 08:27
-
-
Save surajnarwade/94eea6733adae94dc56e1d6e4df43a7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: kiam-test | |
annotations: | |
iam.amazonaws.com/permitted: ".*" | |
--- | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: kiam-tester | |
namespace: kiam-test | |
annotations: | |
iam.amazonaws.com/role: kiam-app-test | |
spec: | |
containers: | |
- name: kiam-tester | |
image: garland/aws-cli-docker:latest | |
command: | |
- /bin/sleep | |
args: | |
- "3600" | |
env: | |
- name: AWS_DEFAULT_REGION | |
value: eu-west-1 |
kubectl exec -it kiam-tester -- aws sts get-caller-identity
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run
aws sts get-caller-identity
to see if pod is getting the desired role