Thamban777 commented on issue #25322:
URL: https://github.com/apache/airflow/issues/25322#issuecomment-2322927522
```
Hi Team,
Am getting Permission denied: '/.aws' on InitContainer. I have followed the
Documentation mentioned above.
EKS Version: 1.30
Chart version: 1.13.1
my values.yaml:
----------------
scheduler:
enabled: true
# Create ServiceAccount
serviceAccount:
# default value is true
# ref:
https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
automountServiceAccountToken: true
# Specifies whether a ServiceAccount should be created
create: false
# The name of the ServiceAccount to use.
# If not set and create is true, a name is generated using the release
name
name: test20
# Annotations to add to scheduler kubernetes service account.
# annotations:
# eks.amazonaws.com/role-arn:
arn:aws:iam::111222333444:role/eks-s3-access-role1
resources: {}
extraContainers:
- name: sync-dags
image: amazon/aws-cli:2.1.34
command: ["/bin/bash", "-c", "--"]
args:
- >
while true; do
aws s3 sync --exact-timestamps --delete
's3://test-s3/apps/airflow/dags/' '/opt/airflow/dags';
sleep 300;
done;
volumeMounts:
- mountPath: /opt/airflow/dags
name: dags
extraInitContainers:
- name: copy-dags
image: amazon/aws-cli:2.1.34
args:
- s3
- cp
- --recursive
- s3://test-s3/apps/airflow/dags/
- /opt/airflow/dags
env:
- name: AWS_REGION
value: us-east-2
- name: AWS_DEFAULT_REGION
value: us-east-2
volumeMounts:
- mountPath: /opt/airflow/dags
name: dags
extraVolumes:
- name: airflow-home
emptyDir: {}
extraVolumeMounts: []
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]