Skip to content

Commit

Permalink
Corrections after merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Mar 25, 2022
1 parent ed9fb39 commit 0c2a290
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions internal/service/lambda/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,24 +223,6 @@ func ResourceFunction() *schema.Resource {
Optional: true,
ValidateFunc: validation.StringInSlice(lambda.Runtime_Values(), false),
},
"ephemeral_storage": {
Type: schema.TypeList,
MaxItems: 1,
Optional: true,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"size": {
Type: schema.TypeInt,
Required: true,
Default: 512,
ValidateFunc: validation.All(
validation.IntBetween(512, 10240),
),
},
},
},
},
"timeout": {
Type: schema.TypeInt,
Optional: true,
Expand Down Expand Up @@ -549,14 +531,6 @@ func resourceFunctionCreate(d *schema.ResourceData, meta interface{}) error {
}
}

// if v, ok := d.GetOk("ephemeral_storage"); ok {
// ephemeralStorageConfig := v.([]interface{})
// ephemeralStorage := ephemeralStorageConfig[0].(map[string]interface{})
// params.EphemeralStorage = &lambda.EphemeralStorage{
// Size: aws.Int64(int64(ephemeralStorage["size"].(int))),
// }
// }

if v, ok := d.GetOk("environment"); ok {
environments := v.([]interface{})
environment, ok := environments[0].(map[string]interface{})
Expand Down

0 comments on commit 0c2a290

Please sign in to comment.