-
Notifications
You must be signed in to change notification settings - Fork 4
Cloudfront deployment #101
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
base: master
Are you sure you want to change the base?
Conversation
cloudfront/cloudfront.tf
Outdated
| ] : a if a != ""] | ||
|
|
||
| enabled = true | ||
| price_class = "PriceClass_100" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zrobmy z tego parametr
cloudfront/cloudfront.tf
Outdated
|
|
||
| restrictions { | ||
| geo_restriction { | ||
| restriction_type = "none" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
potrzebne by to sparamentryzowac i dodac locations jako podzmienna do blokowania regionów
z terraforma powinno byc tak
restrictions {
geo_restriction {
restriction_type = "whitelist"
locations = ["US", "CA", "GB", "DE"]
| geo_restriction { | ||
| restriction_type = "none" | ||
| restriction_type = var.restriction_type | ||
| locations = [var.locations] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moze Ci sie wywalic, jezeli domyslnie restriction bedzie na none. Locations domyslnie chyba powinno byc na null w tkaim wypadku
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zmienilem, powinno byc ok
No description provided.