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

Added IAM member submodule #88

Merged

Conversation

kopachevsky
Copy link
Contributor

@kopachevsky kopachevsky force-pushed the issues/75/member_roles branch from c7b3e27 to 2c28c06 Compare December 27, 2019 15:17

module "member_roles" {
source = "../../modules/member_iam"
service_account_address = var.service_account_address
Copy link
Contributor

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.

type = string
}

variable "project_roles" {
Copy link
Contributor

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" {
Copy link
Contributor

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).

@kopachevsky kopachevsky force-pushed the issues/75/member_roles branch 5 times, most recently from ec60c2c to f8dd047 Compare December 30, 2019 13:37
*/

terraform {
required_version = ">= 0.12"
Copy link
Contributor

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

Provider configuration
*****************************************/
provider "google" {
version = "~> 2.7"
Copy link
Contributor

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?

@kopachevsky kopachevsky force-pushed the issues/75/member_roles branch from f8dd047 to ca90164 Compare December 30, 2019 17:44
@kopachevsky kopachevsky marked this pull request as ready for review December 31, 2019 09:05
@morgante morgante merged commit c4b4800 into terraform-google-modules:master Jan 6, 2020
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.

module doesn't work with dynamically computed values any longer
3 participants