alicloud_sae_config_map

Provides a Serverless App Engine (SAE) Config Map resource.

For information about Serverless App Engine (SAE) Config Map and how to use it, see What is Config Map.

Example Usage

Basic Usage

provider "alicloud" {
  region = "cn-hangzhou"
}

variable "name" {
  default = "tf-example"
}
data "alicloud_regions" "default" {
  current = true
}
resource "random_integer" "default" {
  max = 99999
  min = 10000
}
resource "alicloud_sae_namespace" "default" {
  namespace_id              = "${data.alicloud_regions.default.regions.0.id}:example${random_integer.default.result}"
  namespace_name            = var.name
  namespace_description     = var.name
  enable_micro_registration = false
}

resource "alicloud_sae_config_map" "default" {
  data         = jsonencode({ "env.home" : "/root", "env.shell" : "/bin/sh" })
  name         = var.name
  namespace_id = alicloud_sae_namespace.default.namespace_id
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

Serverless App Engine (SAE) Config Map can be imported using the id, e.g.

$ terraform import alicloud_sae_config_map.example <id>