Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcp project_id change not applying on update to logging_gcs #819

Open
CMurphyInsiderInc opened this issue Mar 7, 2024 · 0 comments
Open

Comments

@CMurphyInsiderInc
Copy link

CMurphyInsiderInc commented Mar 7, 2024

Terraform Version

Terraform v1.5.1
on darwin_arm64

Affected Fastly Terraform Resource(s)

Please list the affected resources, for example:

  • logging_gcs

Terraform Configuration Files

 logging_gcs {
    name         = "log"
    project_id   = "xxxx-xxx-xxx"
    bucket_name  = "xxx-xxx-xxx"
    path         = "/fastly-log/%Y/%m/%d/"
    gzip_level   = 3
    period       = 3600 # how often to write the logs default 3600
    message_type = "blank"
    format       = file("../../common/collector_log_format.txt")
    account_name = "fastly-gcs-xxxxxx"
  }

Expected Behavior

What should have happened?
project_id field update in fastly UI

Actual Behavior

What actually happened?
project_id not updated in fastly UI
as well applying again shows an unexpected change in the resource

Debug Output (optional)

Please provide a link to a GitHub Gist containing the complete debug output (see Terraform docs). Ensure any sensitive data is <REDACTED>.

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply

Important Factoids (optional)

I believe this function is missing project_id

func (h *GCSLoggingServiceAttributeHandler) Update(_ context.Context, d *schema.ResourceData, resource, modified map[string]any, serviceVersion int, conn *gofastly.Client) error {

Is there anything atypical about your account or set up that we should know?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant