Comments (1)
The instance's credentials are provisioned using the service_account
block for a googe_compute_instance
:
terraform-google-nomad/modules/vm/vm.tf
Lines 48 to 56 in 64b9ad2
Both OAuth2 URLs and gcloud short names are supported. To allow full access to all Cloud APIs, use the
cloud-platform
scope. See a complete list of scopes here.Note:
allow_stopping_for_update
must be set to true or your instance must have adesired_status
ofTERMINATED
in order to update this field.
🤔 I do not see this error when I deploy to a personal GCP project. It might be possible that your instance does not have the required permissions.
You can start debugging this in a variety of ways, but here's a good place to get started: after getting an SSH session on any of the server instances, run the following command:
$ curl -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/"
[email protected]/
default/
☝️ [email protected]
was created for this instance, and your service account is likely similar, but different. There is also default
, which contain the default permissions. Continue to use curl
to dig deeper:
$ curl -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/[email protected]/scopes"
https://www.googleapis.com/auth/compute.readonly
https://www.googleapis.com/auth/devstorage.read_only
https://www.googleapis.com/auth/logging.write
https://www.googleapis.com/auth/monitoring.write
Note: my
http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/scopes
contains the same information as above.
from terraform-google-nomad.
Related Issues (20)
- Add an option to deploy Consul with Nomad
- Investigate running Rootless Docker Daemon on Nomad clients
- Prevent Plaintext Secrets in the Compute Metadata Service HOT 1
- Dependabot can't parse your acl_tokens.tf HOT 1
- Install Falco
- Prevent Access to the Metadata Service from Container Workloads using iptables HOT 1
- Dependabot can't parse your bucket.tf
- Falco Installation Broken
- Investigate providing a Firecracker task driver option HOT 1
- Install the Stackdriver monitoring agent
- Add a Vault integration option
- Use Ops Agent HOT 1
- Allow more configuration of Consul integration
- Run nomad as non root user HOT 2
- Consul configuration defines unused options in server and client HOT 2
- Errors and other alerts when following the tutorial steps HOT 3
- Why is the nomad server configuration using a temporary folder for data? HOT 2
- Minor typo, should be "sensitive" HOT 1
- Does not work on `darwin_arm64` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-google-nomad.