pulumi / pulumi-google-native

Apache License 2.0
71 stars 18 forks source link

Service account scopes are not taken in InstanceTemplate #373

Open albertpx opened 2 years ago

albertpx commented 2 years ago

Hello!

Issue details

Set custom scopes to service account in instance template:

        scopes=[
            "logging-write",
            "monitoring-write"
        ],
        email=service_account.email

While the service account name itself would be correct, the scopes will be all disabled.

This is working properly using the classic gcp module.

Steps to reproduce

Same as above

Expected: correct scopes would be set Actual: all scopes are disabled.

tall3n commented 2 years ago

i experienced something similar on the instance compute side.

In Classic you could use for instance cloud-platform, in native you have to use the URL. cloud-platform vs. https://www.googleapis.com/auth/cloud-platform

However, on the Instance (Non Managed) side it would throw and error.