最近更新时间:2019-12-12 16:53:30
Provide RDS security group function
»Create a RDS Security GroupL instance
»Create a RDS Security Group instance
resource "ksyun_krds_security_group" "krds_sec_group_13" {
output_file = "output_file"
security_group_name = "terraform_security_group_13"
security_group_description = "terraform-security-group-13"
security_group_rule{
security_group_rule_protocol = "182.133.0.0/16"
security_group_rule_name = "asdf"
}
security_group_rule{
security_group_rule_protocol = "182.134.0.0/16"
security_group_rule_name = "asdf2"
}
}
The following arguments are supported:
output_file
- (Required) will return the file name of the content storesecurity_group_name
-(Required) the name of the security groupsecurity_group_description
-(Optional)description of security groupsecurity_group_rule
- (Optional)security group rulesecurity_group_rule_protocol
- (Required) 0.0.0.0/32 formatsecurity_group_rule_name
- (Required) no more than 256 bytes, only Chinese, uppercase and lowercase letters, numbers, minus signs and underscores are supportedIn addition to all arguments above, the following attributes are exported:
SecurityGroupId
- Security group IDSecurityGroupName
- security group nameSecurityGroupDescription
- Security Group DescriptionInstances
- corresponding instanceDBInstanceIdentifier
- instance IDDBInstanceName
-instance nameVip
- instance virtual IPSecurityGroupRules
- security group rulesSecurityGroupRuleId
-rule IDSecurityGroupRuleName
-rule nameSecurityGroupRuleProtocol
- rule protocol»Timeouts
NOTE: Available in 1.52.1+.
The timeouts block allows you to specify timeouts for certain actions:
create - (Defaults to 10 mins) Used when creating the db instance (until it reaches the initial Running status).
update - (Defaults to 10 mins) Used when updating the db instance (until it reaches the initial Running status).
delete - (Defaults to 10 mins) Used when terminating the db instance.
纯净模式