Skip to main content

IAM Service Account

Create a dedicated IAM Service Account that will be used to run firewall instances. This module is optional - even if you don't use it, firewalls run fine on the default Google Service Account.

The account produced by this module is intended to have minimal required permissions.

Google Cloud Docs

GitHub Logo Terraform Logo

Reference

Requirements

NameVersion
terraform>= 1.3, < 2.0
google~> 4.54

Providers

NameVersion
google~> 4.54

Modules

No modules.

Resources

NameType
google_project_iam_member.thisresource
google_service_account.thisresource

Inputs

NameDescriptionTypeDefaultRequired
display_namen/astring"Palo Alto Networks Firewall Service Account"no
project_idID of a project in which the service account will be created.stringn/ayes
rolesList of IAM role names, such as ["roles/compute.viewer"] or ["project/A/roles/B"]. The default list is suitable for Palo Alto Networks Firewall to run and publish custom metrics to GCP Stackdriver.set(string)[
"roles/compute.networkViewer",
"roles/logging.logWriter",
"roles/monitoring.metricWriter",
"roles/monitoring.viewer",
"roles/viewer",
"roles/stackdriver.accounts.viewer",
"roles/stackdriver.resourceMetadata.writer"
]
no
service_account_idn/astring"The google_service_account.account_id of the created IAM account, unique string per project."no

Outputs

NameDescription
emailn/a