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

Error when create a azion_edge_application_main_setting #141

Open
hebertdougl opened this issue May 30, 2024 · 2 comments
Open

Error when create a azion_edge_application_main_setting #141

hebertdougl opened this issue May 30, 2024 · 2 comments

Comments

@hebertdougl
Copy link

I'm trying to create the resource azion_edge_application_main_setting with a application_acceleration = true, but I'm getting the following error:

When you create a Edge Application: ApplicationAcceleration must be false or remove from request

In my case this generate a problem which I can't create a rule engine with a bypass cache phase and this the error:

│   68: resource "azion_edge_application_rule_engine" "default" {
│
│ {"behaviors":"Unable to save this rule because to use \"Bypass Cache Phase\" you must first enable
│ Application Accelerator."}

Can anyone help me with this? Because I would like to know if it is possible to create a fix in an edge application to create it with an application_acceleration parameter equals to true.

Thanks in advance.

@cesarmagazord
Copy link

cesarmagazord commented Aug 8, 2024

The same thing happens with the l2_caching option:

╷
│ Error: L2Caching error 
│ 
│   with module.homeecia.module.my-cdn.azion_edge_application_main_setting.edge_app,
│   on ../modules/edge_d/edge_application.tf line 1, in resource "azion_edge_application_main_setting" "edge_app":
│    1: resource "azion_edge_application_main_setting" "edge_app" {
│ 
│ When you create a Edge Application: L2Caching must be false or remove from request

So, I think is not possible to create edge application and rule engine with L2 in one run.

@maxwelbm
Copy link
Contributor

@hebertdougl @cesarmagazord Currently, in API v3, no module is activated on creation, so if it is not possible to create our document with additional fields https://registry.terraform.io/providers/aziontech/azion/latest/docs/resources/edge_application_main_setting, we will have to correct this situation.

But one solution is to create the application from scratch and update the modules

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

No branches or pull requests

3 participants