-
Notifications
You must be signed in to change notification settings - Fork 2
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
403 Error while applying a netlify_site_build_settings resource on Netlify's free tier #74
Comments
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
@RogWilco Can you try to manually specify If that works, I'll check if it makes sense to change the default to us-east-1. Also, I am seeing internally that configuring the functions region will soon become available to all plans, so that would suppress the error too. |
Hey @ramonsnir, I'd like to reopen this issue. Problem still occurs, I have latest version I've tried calling API manually and I reckon the issue here is that the field is always populated and API doesn't let you through if you have anything as terraform {
required_providers {
netlify = {
source = "netlify/netlify"
version = "0.2.1"
}
}
}
data "netlify_site" "current" {
team_slug = var.team_name
name = var.site_name
}
resource "netlify_site_build_settings" "current" {
site_id = data.netlify_site.current.id
build_command = var.build_command
publish_directory = "dist"
production_branch = var.build_branch
branch_deploy_branches = [ var.build_branch ]
} output:
|
Thank you @mazxaxz for reporting this! I have fixed it, hopefully correctly this time, and added a test case. |
Awesome, thanks @ramonsnir I'll give it a try right after it is being released as v0.2.2 Have a great day! |
I have a fairly straightforward
netlify_site_build_settings
resource defined, and after importing I am unable to run apply with no changes. Viewing the plan it appears to want to change the read only propertyfunctions_region
from us-east-1 to us-east-2.Here's the resource block:
The plan output:
And the 403 response:
I think the 403 error is correct and it should not be trying to change a read only property. If I try to set it to the preexisting value anyway, the plan output will omit the change. But if I then apply, I'll still get the same 403 error about the same field.
The text was updated successfully, but these errors were encountered: