mirror of
https://github.com/hashicorp/terraform.git
synced 2026-05-28 04:03:27 -04:00
aws: Expose host in the ConnInfo
This commit is contained in:
parent
b56a7d6957
commit
9cd69a2b29
1 changed files with 4 additions and 0 deletions
|
|
@ -88,6 +88,10 @@ func resource_aws_instance_create(
|
|||
|
||||
instance = instanceRaw.(*ec2.Instance)
|
||||
|
||||
// Initialize the connection info
|
||||
rs.ConnInfo.Raw["type"] = "ssh"
|
||||
rs.ConnInfo.Raw["host"] = instance.PublicIpAddress
|
||||
|
||||
// Set our attributes
|
||||
rs, err = resource_aws_instance_update_state(rs, instance)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue