Skip to content

Migrate container resources to API v1 #3965

@Mia-Cross

Description

@Mia-Cross

This PR integrates the new API v1 for Serverless Containers in Terraform.

  1. Changes on scaleway_container resource:
  • New field: startup_probe allows to define how to check if the container has started successfully.
  • memory_limit (measured in MiB) is deprecated in favor of memory_limit_bytes (measured in bytes)
  • local_storage_limit (measured in MiB) is deprecated in favor local_storage_limit_bytes (measured in bytes)
  • domain_name computed attribute is deprecated in favor of public_endpoint
  • health_check is deprecated in favor of liveness_probe
  • http_option is deprecated in favor of https_connections_only
  • deploy is deprecated and no longer has any effect, containers are automatically deployed at creation, and redeployed following any change.
  1. Changes on scaleway_container_token resource:

This resource is deprecated, please use IAM tokens instead (refer to the documentation to see how to implement them)

  1. Changes on scaleway_container_cron resource:

This resource is deprecated, please use the scaleway_container_trigger.cron resource instead

  1. Changes on scaleway_container_trigger resource:
  • New trigger type: cron
  • On NATS triggers, credentials are no longer automatically generated, they have to be passed using the credentials_file_content field (refer to the documentation for more info)
  • On SQS triggers, credentials are no longer automatically generated, they have to be passed using the access_key and secret_key fields (refer to the documentation for more info)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions