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

bucket_name: add new variable bucket_name #4

Merged
merged 1 commit into from
Apr 19, 2017

Conversation

gaelL
Copy link
Contributor

@gaelL gaelL commented Jan 13, 2017

This variable is here to be able to force the bucket name.

Remove the default behavior who name as site.$domain

@ringods
Copy link
Contributor

ringods commented Jan 19, 2017

Hello @gaelL,

Your contribution is much appreciated. However, to have the README.md in sync with the implementation, can you extend the docs (examples + variable description) to reflect your changes?

Tnx.

@gaelL
Copy link
Contributor Author

gaelL commented Jan 30, 2017

Sorry it was expected to be an internal PR. If you are interested by this change, I will update the readme as well. Thx

@ringods
Copy link
Contributor

ringods commented Jan 30, 2017

@gaelL please do and I will integrate it in the repo here.

@gaelL gaelL changed the title [WIP] bucket_name: add new variable bucket_name bucket_name: add new variable bucket_name Jan 30, 2017
@gaelL
Copy link
Contributor Author

gaelL commented Jan 30, 2017

done. I also add more information in the commit message

Add a way to specify the bucket name to create for the static website.

With this commit, we are now able to give a custom nice that match your personal naming convention.

/!\ Remove the default behavior who name as site.$domain
@@ -3,6 +3,7 @@ variable region {
}

variable domain {}
variable bucket_name {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you make the module backwards compatible by setting the default value of the bucket_name to the calculated value it was before?

"site.${replace("${var.domain}",".","-")}"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In fact no, I tried but terraform can't have interpolation in default variable

hashicorp/terraform#4084

@ringods ringods merged commit c0870fd into skyscrapers:master Apr 19, 2017
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.

2 participants