You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"alicloud_eci_container_group" {
source="./modules/alicloud/r/alicloud_eci_container_group"# container_group_name - (required) is a type of stringcontainer_group_name=null# cpu - (optional) is a type of numbercpu=null# instance_type - (optional) is a type of stringinstance_type=null# memory - (optional) is a type of numbermemory=null# ram_role_name - (optional) is a type of stringram_role_name=null# resource_group_id - (optional) is a type of stringresource_group_id=null# restart_policy - (optional) is a type of stringrestart_policy=null# security_group_id - (required) is a type of stringsecurity_group_id=null# tags - (optional) is a type of map of stringtags={}
# vswitch_id - (required) is a type of stringvswitch_id=null# zone_id - (optional) is a type of stringzone_id=nullcontainers=[{
args = []
commands = []
cpu =null
environment_vars = [{
key =null
value =null
}]
gpu =null
image =null
image_pull_policy =null
memory =null
name =null
ports = [{
port =null
protocol =null
}]
ready =null
restart_count =null
volume_mounts = [{
mount_path =null
name =null
read_only =null
}]
working_dir =null
}]
dns_config=[{
name_servers = []
options = [{
name =null
value =null
}]
searches = []
}]
eci_security_context=[{
sysctls = [{
name =null
value =null
}]
}]
host_aliases=[{
hostnames = []
ip =null
}]
init_containers=[{
args = []
commands = []
cpu =null
environment_vars = [{
key =null
value =null
}]
gpu =null
image =null
image_pull_policy =null
memory =null
name =null
ports = [{
port =null
protocol =null
}]
ready =null
restart_count =null
volume_mounts = [{
mount_path =null
name =null
read_only =null
}]
working_dir =null
}]
timeouts=[{
create =null
update =null
}]
volumes=[{
config_file_volume_config_file_to_paths = [{
content =null
path =null
}]
disk_volume_disk_id =null
disk_volume_fs_type =null
flex_volume_driver =null
flex_volume_fs_type =null
flex_volume_options =null
name =null
nfs_volume_path =null
nfs_volume_read_only =null
nfs_volume_server =null
type =null
}]
}
resource"alicloud_eci_container_group""this" {
# container_group_name - (required) is a type of stringcontainer_group_name=var.container_group_name# cpu - (optional) is a type of numbercpu=var.cpu# instance_type - (optional) is a type of stringinstance_type=var.instance_type# memory - (optional) is a type of numbermemory=var.memory# ram_role_name - (optional) is a type of stringram_role_name=var.ram_role_name# resource_group_id - (optional) is a type of stringresource_group_id=var.resource_group_id# restart_policy - (optional) is a type of stringrestart_policy=var.restart_policy# security_group_id - (required) is a type of stringsecurity_group_id=var.security_group_id# tags - (optional) is a type of map of stringtags=var.tags# vswitch_id - (required) is a type of stringvswitch_id=var.vswitch_id# zone_id - (optional) is a type of stringzone_id=var.zone_iddynamic"containers" {
for_each=var.containerscontent {
# args - (optional) is a type of list of stringargs=containers.value["args"]
# commands - (optional) is a type of list of stringcommands=containers.value["commands"]
# cpu - (optional) is a type of numbercpu=containers.value["cpu"]
# gpu - (optional) is a type of numbergpu=containers.value["gpu"]
# image - (required) is a type of stringimage=containers.value["image"]
# image_pull_policy - (optional) is a type of stringimage_pull_policy=containers.value["image_pull_policy"]
# memory - (optional) is a type of numbermemory=containers.value["memory"]
# name - (required) is a type of stringname=containers.value["name"]
# working_dir - (optional) is a type of stringworking_dir=containers.value["working_dir"]
dynamic"environment_vars" {
for_each=containers.value.environment_varscontent {
# key - (optional) is a type of stringkey=environment_vars.value["key"]
# value - (optional) is a type of stringvalue=environment_vars.value["value"]
}
}
dynamic"ports" {
for_each=containers.value.portscontent {
# port - (optional) is a type of numberport=ports.value["port"]
# protocol - (optional) is a type of stringprotocol=ports.value["protocol"]
}
}
dynamic"volume_mounts" {
for_each=containers.value.volume_mountscontent {
# mount_path - (optional) is a type of stringmount_path=volume_mounts.value["mount_path"]
# name - (optional) is a type of stringname=volume_mounts.value["name"]
# read_only - (optional) is a type of boolread_only=volume_mounts.value["read_only"]
}
}
}
}
dynamic"dns_config" {
for_each=var.dns_configcontent {
# name_servers - (optional) is a type of list of stringname_servers=dns_config.value["name_servers"]
# searches - (optional) is a type of list of stringsearches=dns_config.value["searches"]
dynamic"options" {
for_each=dns_config.value.optionscontent {
# name - (optional) is a type of stringname=options.value["name"]
# value - (optional) is a type of stringvalue=options.value["value"]
}
}
}
}
dynamic"eci_security_context" {
for_each=var.eci_security_contextcontent {
dynamic"sysctls" {
for_each=eci_security_context.value.sysctlscontent {
# name - (optional) is a type of stringname=sysctls.value["name"]
# value - (optional) is a type of stringvalue=sysctls.value["value"]
}
}
}
}
dynamic"host_aliases" {
for_each=var.host_aliasescontent {
# hostnames - (optional) is a type of list of stringhostnames=host_aliases.value["hostnames"]
# ip - (optional) is a type of stringip=host_aliases.value["ip"]
}
}
dynamic"init_containers" {
for_each=var.init_containerscontent {
# args - (optional) is a type of list of stringargs=init_containers.value["args"]
# commands - (optional) is a type of list of stringcommands=init_containers.value["commands"]
# cpu - (optional) is a type of numbercpu=init_containers.value["cpu"]
# gpu - (optional) is a type of numbergpu=init_containers.value["gpu"]
# image - (optional) is a type of stringimage=init_containers.value["image"]
# image_pull_policy - (optional) is a type of stringimage_pull_policy=init_containers.value["image_pull_policy"]
# memory - (optional) is a type of numbermemory=init_containers.value["memory"]
# name - (optional) is a type of stringname=init_containers.value["name"]
# working_dir - (optional) is a type of stringworking_dir=init_containers.value["working_dir"]
dynamic"environment_vars" {
for_each=init_containers.value.environment_varscontent {
# key - (optional) is a type of stringkey=environment_vars.value["key"]
# value - (optional) is a type of stringvalue=environment_vars.value["value"]
}
}
dynamic"ports" {
for_each=init_containers.value.portscontent {
# port - (optional) is a type of numberport=ports.value["port"]
# protocol - (optional) is a type of stringprotocol=ports.value["protocol"]
}
}
dynamic"volume_mounts" {
for_each=init_containers.value.volume_mountscontent {
# mount_path - (optional) is a type of stringmount_path=volume_mounts.value["mount_path"]
# name - (optional) is a type of stringname=volume_mounts.value["name"]
# read_only - (optional) is a type of boolread_only=volume_mounts.value["read_only"]
}
}
}
}
dynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
# update - (optional) is a type of stringupdate=timeouts.value["update"]
}
}
dynamic"volumes" {
for_each=var.volumescontent {
# disk_volume_disk_id - (optional) is a type of stringdisk_volume_disk_id=volumes.value["disk_volume_disk_id"]
# disk_volume_fs_type - (optional) is a type of stringdisk_volume_fs_type=volumes.value["disk_volume_fs_type"]
# flex_volume_driver - (optional) is a type of stringflex_volume_driver=volumes.value["flex_volume_driver"]
# flex_volume_fs_type - (optional) is a type of stringflex_volume_fs_type=volumes.value["flex_volume_fs_type"]
# flex_volume_options - (optional) is a type of stringflex_volume_options=volumes.value["flex_volume_options"]
# name - (optional) is a type of stringname=volumes.value["name"]
# nfs_volume_path - (optional) is a type of stringnfs_volume_path=volumes.value["nfs_volume_path"]
# nfs_volume_read_only - (optional) is a type of boolnfs_volume_read_only=volumes.value["nfs_volume_read_only"]
# nfs_volume_server - (optional) is a type of stringnfs_volume_server=volumes.value["nfs_volume_server"]
# type - (optional) is a type of stringtype=volumes.value["type"]
dynamic"config_file_volume_config_file_to_paths" {
for_each=volumes.value.config_file_volume_config_file_to_pathscontent {
# content - (optional) is a type of stringcontent=config_file_volume_config_file_to_paths.value["content"]
# path - (optional) is a type of stringpath=config_file_volume_config_file_to_paths.value["path"]
}
}
}
}
}