Thank you for your interest in Alibaba Cloud Terraform Module. This Module will be out of maintenance as of today and will be officially taken offline in the future. More available Modules can be searched in Alibaba Cloud Terraform Module.
Thank you again for your understanding and cooperation.
Terraform Module for creating Jenkins based on Alibaba Cloud market place image and attach ECS to SLB.
terraform-alicloud-market-jenkins
English | 简体中文
Terraform Module used to create ECS Instance based on Alibaba Cloud market place image and attach ECS to SLB, if domain_name exits, will associate SLB with domain.
Building the Jenkins using market place image
module "market_jenkins_with_ecs" {
source = "terraform-alicloud-modules/market-jenkins/alicloud"
product_keyword = "Jenkins自动化部署"
product_suggested_price = 0
ecs_instance_name = "jenkins-instance"
ecs_instance_password = "YourPassword123"
ecs_instance_type = "ecs.sn1ne.large"
system_disk_category = "cloud_efficiency"
security_group_ids = ["sg-132txxxxx"]
vswitch_id = "vsw-32refxxxx"
internet_max_bandwidth_out = 50
allocate_public_ip = true
data_disks = [
{
name = "disk-for-jenkins"
size = 50
}
]
}
Building the Jenkins using market place image and bind a slb
module "market_jenkins_with_slb" {
source = "terraform-alicloud-modules/market-jenkins/alicloud"
product_keyword = "Jenkins"
product_suggested_price = 0
ecs_instance_name = "jenkins-instance"
ecs_instance_password = "YourPassword123"
ecs_instance_type = "ecs.sn1ne.large"
system_disk_category = "cloud_efficiency"
security_group_ids = ["sg-132txxxxx"]
vswitch_id = "vsw-32refxxxx"
create_slb = true
slb_name = "for-jenkins"
bandwidth = 5
spec = "slb.s1.small"
}
Building the Jenkins using market place image and bind a slb and dns
module "market_jenkins_with_bind_dns" {
source = "terraform-alicloud-modules/market-jenkins/alicloud"
ecs_instance_name = "jenkins-instance"
ecs_instance_password = "YourPassword123"
ecs_instance_type = "ecs.sn1ne.large"
system_disk_category = "cloud_efficiency"
security_group_ids = ["sg-132txxxxx"]
vswitch_id = "vsw-32refxxxx"
create_slb = true
slb_name = "for-jenkins"
bandwidth = 5
spec = "slb.s1.small"
bind_domain = true
domain_name = "cloudxxxx.xxx"
host_record = "jenkins"
type = "A"
}
From the version v1.1.0, the module has removed the following provider
setting:
provider "alicloud" {
profile = var.profile != "" ? var.profile : null
shared_credentials_file = var.shared_credentials_file != "" ? var.shared_credentials_file : null
region = var.region != "" ? var.region : null
skip_region_validation = var.skip_region_validation
configuration_source = "terraform-alicloud-modules/market-jenkins"
}
If you still want to use the provider
setting to apply this module, you can specify a supported version, like 1.0.0:
module "market_jenkins_with_ecs" {
source = "terraform-alicloud-modules/market-jenkins/alicloud"
version = "1.0.0"
region = "cn-beijing"
profile = "Your-Profile-Name"
product_keyword = "Jenkins自动化部署"
product_suggested_price = 0
// ...
}
If you want to upgrade the module to 1.1.0 or higher in-place, you can define a provider which same region with previous region:
provider "alicloud" {
region = "cn-beijing"
profile = "Your-Profile-Name"
}
module "market_jenkins_with_ecs" {
source = "terraform-alicloud-modules/market-jenkins/alicloud"
product_keyword = "Jenkins自动化部署"
product_suggested_price = 0
// ...
}
or specify an alias provider with a defined region to the module using providers
:
provider "alicloud" {
region = "cn-beijing"
profile = "Your-Profile-Name"
alias = "bj"
}
module "market_jenkins_with_ecs" {
source = "terraform-alicloud-modules/market-jenkins/alicloud"
providers = {
alicloud = alicloud.bj
}
product_keyword = "Jenkins自动化部署"
product_suggested_price = 0
// ...
}
and then run terraform init
and terraform apply
to make the defined provider effect to the existing module state.
More details see How to use provider in the module
Name | Version |
---|---|
terraform | >= 0.13.0 |
alicloud | >= 1.71.0 |
If you have any problems when using this module, please opening a provider issue and let us know.
Note: There does not recommend to open an issue on this repo.
Created and maintained by Alibaba Cloud Terraform Team([email protected])
Apache 2 Licensed. See LICENSE for full details.