googleComputeDefaultServiceAccount
Use this data source to retrieve default service account for this project
Example Usage
import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
const dataGoogleComputeDefaultServiceAccountDefault =
new google.dataGoogleComputeDefaultServiceAccount.DataGoogleComputeDefaultServiceAccount(
this,
"default",
{}
);
new cdktf.TerraformOutput(this, "default_account", {
value: dataGoogleComputeDefaultServiceAccountDefault.email,
});
Argument Reference
The following arguments are supported:
project
- (Optional) The project ID. If it is not provided, the provider project is used.
Attributes Reference
The following attributes are exported:
-
email
- Email address of the default service account used by VMs running in this project -
uniqueId
- The unique id of the service account. -
name
- The fully-qualified name of the service account. -
displayName
- The display name for the service account.