-
Notifications
You must be signed in to change notification settings - Fork 175
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
Added IAM member submodule #88
Added IAM member submodule #88
Conversation
kopachevsky
commented
Dec 27, 2019
- Fix module doesn't work with dynamically computed values any longer #75
c7b3e27
to
2c28c06
Compare
examples/member_iam/main.tf
Outdated
|
||
module "member_roles" { | ||
source = "../../modules/member_iam" | ||
service_account_address = var.service_account_address |
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.
Don't make this a variable, create the service account in the example.
examples/member_iam/variables.tf
Outdated
type = string | ||
} | ||
|
||
variable "project_roles" { |
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.
Don't make this a variable, just hardcode a few roles in the example.
* limitations under the License. | ||
*/ | ||
|
||
output "roles" { |
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.
Outputs which simply pass back inputs are not useful and considered an anti-pattern. At a minimum these outputs should be constructed from the resource outputs.
Or simply return the entire resource as an output (value = google_project_iam_member.project_iam_member
).
ec60c2c
to
f8dd047
Compare
examples/member_iam/versions.tf
Outdated
*/ | ||
|
||
terraform { | ||
required_version = ">= 0.12" |
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.
This example wont work with TF ver < 0.12.6
examples/member_iam/main.tf
Outdated
Provider configuration | ||
*****************************************/ | ||
provider "google" { | ||
version = "~> 2.7" |
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.
Are you sure about the version?
f8dd047
to
ca90164
Compare