Skip to content

Commit

Permalink
add creation of disaster recovery s3 buckets - part of asulibraries/i…
Browse files Browse the repository at this point in the history
  • Loading branch information
elizoller committed Aug 5, 2020
1 parent 6dd1a1e commit e6d893e
Showing 1 changed file with 64 additions and 1 deletion.
65 changes: 64 additions & 1 deletion aws_create_multiple_ec2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@
Application: islandora
when: matomo_rds_instance.instances|length < 1

- name: check for main s3
- name: check for bags s3
block:
- aws_s3:
mode: list
Expand Down Expand Up @@ -404,6 +404,69 @@
state: present
versioning: yes

- name: check for drupal filesystem s3
block:
- aws_s3:
mode: list
bucket: islandora-drupal
aws_secret_key: "{{ aws_secret_key }}"
aws_access_key: "{{ aws_access_key }}"
rescue:
- s3_bucket:
name: islandora-drupal
aws_secret_key: "{{ aws_secret_key }}"
aws_access_key: "{{ aws_access_key }}"
region: us-east-1
state: present
versioning: yes

- name: check for bags s3 in disaster recovery
block:
- aws_s3:
mode: list
bucket: asulibdev-islandora-bucket-dr
aws_secret_key: "{{ aws_dr_secret_key }}"
aws_access_key: "{{ aws_dr_access_key }}"
rescue:
- s3_bucket:
name: asulibdev-islandora-bucket-dr
aws_secret_key: "{{ aws_dr_secret_key }}"
aws_access_key: "{{ aws_dr_access_key }}"
region: us-west-2
state: present
versioning: yes

- name: check for fedora s3 in disaster recovery
block:
- aws_s3:
mode: list
bucket: fcrepo-filestore-dr
aws_secret_key: "{{ aws_secret_key }}"
aws_access_key: "{{ aws_access_key }}"
rescue:
- s3_bucket:
name: fcrepo-filestore-dr
aws_secret_key: "{{ aws_secret_key }}"
aws_access_key: "{{ aws_access_key }}"
region: us-east-1
state: present
versioning: yes

- name: check for drupal filesystem s3 in disaster recovery
block:
- aws_s3:
mode: list
bucket: islandora-drupal-dr
aws_secret_key: "{{ aws_dr_secret_key }}"
aws_access_key: "{{ aws_dr_access_key }}"
rescue:
- s3_bucket:
name: islandora-drupal-dr
aws_secret_key: "{{ aws_dr_secret_key }}"
aws_access_key: "{{ aws_dr_access_key }}"
region: us-west-2
state: present
versioning: yes



Expand Down

0 comments on commit e6d893e

Please sign in to comment.