Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add origin shield in cloudfront_distribution module #1557

Conversation

boutetnico
Copy link
Contributor

SUMMARY

Add Origin Shield option to cloudfront_distribution module.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

cloudfront_distribution.py

ADDITIONAL INFORMATION

@boutetnico boutetnico marked this pull request as draft October 11, 2022 09:12
@github-actions
Copy link

github-actions bot commented Oct 11, 2022

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

@ansibullbot
Copy link

@ansibullbot ansibullbot added community_review feature This issue/PR relates to a feature request integration tests/integration module module needs_triage plugins plugin (any type) tests tests labels Oct 11, 2022
@softwarefactory-project-zuul
Copy link
Contributor

@softwarefactory-project-zuul
Copy link
Contributor

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 4m 12s
✔️ build-ansible-collection SUCCESS in 5m 48s
ansible-test-sanity-docker-devel FAILURE in 10m 37s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 10m 08s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 9m 22s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 10m 14s
ansible-test-sanity-docker-stable-2.14 FAILURE in 9m 47s (non-voting)
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 6m 55s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 8m 12s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 6m 38s
✔️ ansible-test-splitter SUCCESS in 2m 54s
⚠️ integration-community.aws-1 SKIPPED
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 4m 31s
✔️ build-ansible-collection SUCCESS in 6m 55s
ansible-test-sanity-docker-devel FAILURE in 9m 52s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 11m 57s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 10m 27s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 10m 43s
ansible-test-sanity-docker-stable-2.14 FAILURE in 9m 38s (non-voting)
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 8m 11s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 6m 21s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 6m 47s
✔️ ansible-test-splitter SUCCESS in 3m 29s
⚠️ integration-community.aws-1 SKIPPED
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED

@boutetnico boutetnico marked this pull request as ready for review October 12, 2022 08:36
Copy link
Contributor

@alinabuzachis alinabuzachis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@boutetnico Thank you for working on this feature. Left two minor comments. Otherwise, LGTM!

plugins/modules/cloudfront_distribution.py Show resolved Hide resolved
plugins/modules/cloudfront_distribution.py Show resolved Hide resolved
@markuman markuman added the backport-5 PR should be backported to the stable-5 branch label Oct 18, 2022
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 5m 00s
✔️ build-ansible-collection SUCCESS in 4m 56s
ansible-test-sanity-docker-devel FAILURE in 8m 49s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 8m 53s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 9m 08s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 10m 07s
ansible-test-sanity-docker-stable-2.14 FAILURE in 9m 05s (non-voting)
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 6m 31s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 6m 21s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 6m 26s
✔️ ansible-test-splitter SUCCESS in 2m 49s
⚠️ integration-community.aws-1 SKIPPED
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED
✔️ ansible-test-changelog SUCCESS in 2m 15s

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 4m 10s
✔️ build-ansible-collection SUCCESS in 5m 02s
ansible-test-sanity-docker-devel FAILURE in 8m 16s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 9m 47s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 11m 19s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 9m 47s
ansible-test-sanity-docker-stable-2.14 FAILURE in 8m 43s (non-voting)
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 5m 44s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 5m 33s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 5m 47s
✔️ ansible-test-splitter SUCCESS in 2m 33s
⚠️ integration-community.aws-1 SKIPPED
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED
✔️ ansible-test-changelog SUCCESS in 2m 34s

goneri
goneri previously requested changes Oct 25, 2022
Copy link
Member

@goneri goneri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me minor so tiny code adjustments.

plugins/modules/cloudfront_distribution.py Outdated Show resolved Hide resolved
@softwarefactory-project-zuul
Copy link
Contributor

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/ansible-collections/community.aws for 1557,393414ceb6d32834b02a0fad7b21e60e6db42714

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 3m 27s
✔️ build-ansible-collection SUCCESS in 5m 31s
✔️ ansible-test-sanity-docker-devel SUCCESS in 11m 20s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 9m 50s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 9m 40s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 9m 21s
✔️ ansible-test-sanity-docker-stable-2.14 SUCCESS in 9m 36s
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 6m 48s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 6m 39s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 6m 21s
✔️ ansible-test-splitter SUCCESS in 2m 29s
⚠️ integration-community.aws-1 SKIPPED
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED
✔️ ansible-test-changelog SUCCESS in 2m 18s

@markuman markuman requested a review from goneri November 15, 2022 08:28
Copy link
Contributor

@alinabuzachis alinabuzachis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@boutetnico Thank you. LGTM!

@markuman markuman added the mergeit Merge the PR (SoftwareFactory) label Nov 17, 2022
@markuman markuman closed this Dec 7, 2022
@markuman markuman removed the mergeit Merge the PR (SoftwareFactory) label Dec 7, 2022
@markuman markuman reopened this Dec 7, 2022
@markuman markuman dismissed goneri’s stale review December 7, 2022 10:59

everthing is resolved

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 4m 04s
✔️ build-ansible-collection SUCCESS in 6m 12s
✔️ ansible-test-sanity-docker-devel SUCCESS in 9m 01s (non-voting)
ansible-test-sanity-docker-milestone FAILURE in 11m 11s (non-voting)
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 9m 30s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 9m 07s
✔️ ansible-test-sanity-docker-stable-2.14 SUCCESS in 9m 10s
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 5m 52s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 5m 59s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 7m 05s
✔️ ansible-test-changelog SUCCESS in 2m 37s
✔️ ansible-test-splitter SUCCESS in 3m 00s
⚠️ integration-community.aws-1 SKIPPED
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED
⚠️ integration-community.aws-19 SKIPPED
⚠️ integration-community.aws-20 SKIPPED
⚠️ integration-community.aws-21 SKIPPED
⚠️ integration-community.aws-22 SKIPPED

@markuman markuman added the mergeit Merge the PR (SoftwareFactory) label Dec 7, 2022
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

✔️ ansible-galaxy-importer SUCCESS in 4m 05s
✔️ build-ansible-collection SUCCESS in 5m 25s
✔️ ansible-test-sanity-docker-devel SUCCESS in 10m 06s (non-voting)
ansible-test-sanity-docker-milestone FAILURE in 8m 19s (non-voting)
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 9m 53s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 11m 20s
✔️ ansible-test-sanity-docker-stable-2.14 SUCCESS in 9m 53s
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 6m 02s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 6m 11s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 7m 11s
✔️ ansible-test-changelog SUCCESS in 2m 27s
✔️ ansible-test-splitter SUCCESS in 2m 28s
⚠️ integration-community.aws-1 SKIPPED
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED
⚠️ integration-community.aws-19 SKIPPED
⚠️ integration-community.aws-20 SKIPPED
⚠️ integration-community.aws-21 SKIPPED
⚠️ integration-community.aws-22 SKIPPED

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit bdb7c9f into ansible-collections:main Dec 7, 2022
@patchback
Copy link

patchback bot commented Dec 7, 2022

Backport to stable-5: 💔 cherry-picking failed — conflicts found

❌ Failed to cleanly apply bdb7c9f on top of patchback/backports/stable-5/bdb7c9f26f6ff39654cd90e2dd18605a6e3b026c/pr-1557

Backporting merged PR #1557 into main

  1. Ensure you have a local repo clone of your fork. Unless you cloned it
    from the upstream, this would be your origin remote.
  2. Make sure you have an upstream repo added as a remote too. In these
    instructions you'll refer to it by the name upstream. If you don't
    have it, here's how you can add it:
    $ git remote add upstream https://github.com/ansible-collections/community.aws.git
  3. Ensure you have the latest copy of upstream and prepare a branch
    that will hold the backported code:
    $ git fetch upstream
    $ git checkout -b patchback/backports/stable-5/bdb7c9f26f6ff39654cd90e2dd18605a6e3b026c/pr-1557 upstream/stable-5
  4. Now, cherry-pick PR Add origin shield in cloudfront_distribution module #1557 contents into that branch:
    $ git cherry-pick -x bdb7c9f26f6ff39654cd90e2dd18605a6e3b026c
    If it'll yell at you with something like fatal: Commit bdb7c9f26f6ff39654cd90e2dd18605a6e3b026c is a merge but no -m option was given., add -m 1 as follows intead:
    $ git cherry-pick -m1 -x bdb7c9f26f6ff39654cd90e2dd18605a6e3b026c
  5. At this point, you'll probably encounter some merge conflicts. You must
    resolve them in to preserve the patch from PR Add origin shield in cloudfront_distribution module #1557 as close to the
    original as possible.
  6. Push this branch to your fork on GitHub:
    $ git push origin patchback/backports/stable-5/bdb7c9f26f6ff39654cd90e2dd18605a6e3b026c/pr-1557
  7. Create a PR, ensure that the CI is green. If it's not — update it so that
    the tests and any other checks pass. This is it!
    Now relax and wait for the maintainers to process your pull request
    when they have some cycles to do reviews. Don't worry — they'll tell you if
    any improvements are necessary when the time comes!

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-5 PR should be backported to the stable-5 branch community_review feature This issue/PR relates to a feature request integration tests/integration mergeit Merge the PR (SoftwareFactory) module module plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants