|
|
|
|
@ -19,6 +19,9 @@ func resourceAwsEip() *schema.Resource {
|
|
|
|
|
Read: resourceAwsEipRead,
|
|
|
|
|
Update: resourceAwsEipUpdate,
|
|
|
|
|
Delete: resourceAwsEipDelete,
|
|
|
|
|
Importer: &schema.ResourceImporter{
|
|
|
|
|
State: resourceAwsEipImportState,
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
Schema: map[string]*schema.Schema{
|
|
|
|
|
"vpc": &schema.Schema{
|
|
|
|
|
@ -289,6 +292,12 @@ func resourceAwsEipDelete(d *schema.ResourceData, meta interface{}) error {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func resourceAwsEipImportState(
|
|
|
|
|
d *schema.ResourceData,
|
|
|
|
|
meta interface{}) ([]*schema.ResourceData, error) {
|
|
|
|
|
return []*schema.ResourceData{d}, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func resourceAwsEipDomain(d *schema.ResourceData) string {
|
|
|
|
|
if v, ok := d.GetOk("domain"); ok {
|
|
|
|
|
return v.(string)
|
|
|
|
|
|