add publicly_accessible, update docs
This commit is contained in:
parent
5739c4869c
commit
77d8f87308
|
@ -54,6 +54,13 @@ func resourceAwsRDSClusterInstance() *schema.Resource {
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"publicly_accessible": &schema.Schema{
|
||||||
|
Type: schema.TypeBool,
|
||||||
|
Optional: true,
|
||||||
|
Default: false,
|
||||||
|
ForceNew: true,
|
||||||
|
},
|
||||||
|
|
||||||
"instance_class": &schema.Schema{
|
"instance_class": &schema.Schema{
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Required: true,
|
Required: true,
|
||||||
|
@ -73,6 +80,7 @@ func resourceAwsRDSClusterInstanceCreate(d *schema.ResourceData, meta interface{
|
||||||
DBInstanceClass: aws.String(d.Get("instance_class").(string)),
|
DBInstanceClass: aws.String(d.Get("instance_class").(string)),
|
||||||
DBClusterIdentifier: aws.String(d.Get("cluster_identifier").(string)),
|
DBClusterIdentifier: aws.String(d.Get("cluster_identifier").(string)),
|
||||||
Engine: aws.String("aurora"),
|
Engine: aws.String("aurora"),
|
||||||
|
PubliclyAccessible: aws.Bool(d.Get("publicly_accessible").(bool)),
|
||||||
Tags: tags,
|
Tags: tags,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -154,6 +162,8 @@ func resourceAwsRDSClusterInstanceRead(d *schema.ResourceData, meta interface{})
|
||||||
d.Set("port", db.Endpoint.Port)
|
d.Set("port", db.Endpoint.Port)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
d.Set("publicly_accessible", db.PubliclyAccessible)
|
||||||
|
|
||||||
// Fetch and save tags
|
// Fetch and save tags
|
||||||
arn, err := buildRDSARN(d, meta)
|
arn, err := buildRDSARN(d, meta)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -55,7 +55,6 @@ string.
|
||||||
* `apply_immediately` - (Optional) Specifies whether any cluster modifications
|
* `apply_immediately` - (Optional) Specifies whether any cluster modifications
|
||||||
are applied immediately, or during the next maintenance window. Default is
|
are applied immediately, or during the next maintenance window. Default is
|
||||||
`false`. See [Amazon RDS Documentation for more information.](http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.DBInstance.Modifying.html)
|
`false`. See [Amazon RDS Documentation for more information.](http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.DBInstance.Modifying.html)
|
||||||
* `vpc_security_group_ids` - (Optional) List of VPC security groups to associate.
|
|
||||||
|
|
||||||
## Attributes Reference
|
## Attributes Reference
|
||||||
|
|
||||||
|
|
|
@ -60,8 +60,9 @@ and memory, see [Scaling Aurora DB Instances][4]. Aurora currently
|
||||||
- db.r3.2xlarge
|
- db.r3.2xlarge
|
||||||
- db.r3.4xlarge
|
- db.r3.4xlarge
|
||||||
- db.r3.8xlarge
|
- db.r3.8xlarge
|
||||||
|
* `publicly_accessible` - (Optional) Bool to control if instance is publicly accessible.
|
||||||
.
|
Default `false`. See the documentation on [Creating DB Instances][6] for more
|
||||||
|
details on controlling this property.
|
||||||
|
|
||||||
## Attributes Reference
|
## Attributes Reference
|
||||||
|
|
||||||
|
@ -85,3 +86,4 @@ this instance is a read replica
|
||||||
[3]: /docs/providers/aws/r/rds_cluster.html
|
[3]: /docs/providers/aws/r/rds_cluster.html
|
||||||
[4]: http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Managing.html
|
[4]: http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Managing.html
|
||||||
[5]: /docs/configuration/resources.html#count
|
[5]: /docs/configuration/resources.html#count
|
||||||
|
[6]: http://docs.aws.amazon.com/fr_fr/AmazonRDS/latest/APIReference/API_CreateDBInstance.html
|
||||||
|
|
Loading…
Reference in New Issue