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

replace dynamic cloudfront id fetching with env var #457

Merged

Conversation

arturtamborski
Copy link
Member

fix a bug in #385 :)

Comment on lines -39 to -45
dist_id=$(
aws cloudfront list-distributions \
| jq --arg PATH "/${RESOURCE}" -r '
.DistributionList.Items[]
| {Id, p: .Origins.Items[].OriginPath}
| select(.p == $PATH).Id'
)
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm removing (or rather, reverting) this bit because IAM user we're using does not have the permission to list cloudfront distros, and we don't want to give that permission to it, because it's not worth it - instead we'll use another env var and type the distro id directly in there.

@arturtamborski arturtamborski merged commit e545afb into CodeForPoznan:master Mar 12, 2022
@arturtamborski arturtamborski deleted the 385-bugfix-deploy-script branch March 12, 2022 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant