Skip to content

Commit

Permalink
#328 correct localstack bucket creation by localstack service account
Browse files Browse the repository at this point in the history
  • Loading branch information
Don Sizemore committed Dec 18, 2023
1 parent 724512d commit b5a1a24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/localstack_create_bucket.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- name: create localstack bucket for testing
ansible.builtin.shell: "aws --endpoint={{ custom_endpoint_escaped }} s3 mb s3://{{ bucket_options.bucket_name }}"
become: yes
become_user: "{{ dataverse.payara.user }}"
become_user: "{{ localstack.user }}"
when: bucket_options.custom_endpoint_url | length > 0

- name: place CORS.json
Expand All @@ -21,7 +21,7 @@
- name: set CORS on bucket when upload_redirect is true
ansible.builtin.shell: 'aws --endpoint={{ custom_endpoint_escaped }} s3api put-bucket-cors --bucket {{ bucket_options.bucket_name }} --cors-configuration file:///tmp/cors.json'
become: yes
become_user: "{{ dataverse.payara.user }}"
become_user: "{{ localstack.user }}"
when: bucket_options.upload_redirect == true

- name: debug
Expand Down

0 comments on commit b5a1a24

Please sign in to comment.