TIL: Fix bug OSConfigAgent update guest attributes
postAttribute error: received status code "403 Forbidden" for request "PUT http://metadata.google.internal/computeMetadata/v1/instance/guest-attributes/guestInventory/Version"
Error response: Guest attributes endpoint access is disabled.
To resolve this issue, you may need to:
Enable Guest Attributes: Check your Google Cloud project or the specific Compute Engine instance to ensure that the guest attributes feature is enabled. This might involve checking project-wide settings or instance-specific settings in the Google Cloud Console or using the gcloud command-line tool.
enable-guest-attributes TRUE
Reference https://cloud.google.com/compute/docs/metadata/manage-guest-attributes#enable_attributes