provider/aws: Read Elastic Beanstalk stack name (#7671)
This commit is contained in:
parent
28561bd064
commit
03157610d8
|
@ -110,11 +110,12 @@ func resourceAwsElasticBeanstalkEnvironment() *schema.Resource {
|
|||
"solution_stack_name": &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
ConflictsWith: []string{"template_name"},
|
||||
},
|
||||
"template_name": &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
ConflictsWith: []string{"solution_stack_name"},
|
||||
},
|
||||
"wait_for_ready_timeout": &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
|
@ -420,6 +421,10 @@ func resourceAwsElasticBeanstalkEnvironmentRead(d *schema.ResourceData, meta int
|
|||
}
|
||||
}
|
||||
|
||||
if err := d.Set("solution_stack_name", env.SolutionStackName); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := d.Set("autoscaling_groups", flattenBeanstalkAsg(resources.EnvironmentResources.AutoScalingGroups)); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue