Log Group Name is required/forcenew

This commit is contained in:
Clint Shryock 2015-06-17 16:26:46 -05:00
parent bfdf11c477
commit 1a6aef0ed7
2 changed files with 3 additions and 9 deletions

View File

@ -86,7 +86,6 @@ func Provider() terraform.ResourceProvider {
"aws_app_cookie_stickiness_policy": resourceAwsAppCookieStickinessPolicy(),
"aws_autoscaling_group": resourceAwsAutoscalingGroup(),
"aws_autoscaling_notification": resourceAwsAutoscalingNotification(),
"aws_flow_log": resourceAwsFlowLog(),
"aws_customer_gateway": resourceAwsCustomerGateway(),
"aws_db_instance": resourceAwsDbInstance(),
"aws_db_parameter_group": resourceAwsDbParameterGroup(),
@ -102,6 +101,7 @@ func Provider() terraform.ResourceProvider {
"aws_elasticache_security_group": resourceAwsElasticacheSecurityGroup(),
"aws_elasticache_subnet_group": resourceAwsElasticacheSubnetGroup(),
"aws_elb": resourceAwsElb(),
"aws_flow_log": resourceAwsFlowLog(),
"aws_iam_access_key": resourceAwsIamAccessKey(),
"aws_iam_group_policy": resourceAwsIamGroupPolicy(),
"aws_iam_group": resourceAwsIamGroup(),

View File

@ -17,12 +17,6 @@ func resourceAwsFlowLog() *schema.Resource {
Delete: resourceAwsLogFlowDelete,
Schema: map[string]*schema.Schema{
// "client_token": &schema.Schema{
// Type: schema.TypeString,
// Optional: true,
// Computed: true,
// },
"iam_role_arn": &schema.Schema{
Type: schema.TypeString,
Required: true,
@ -31,8 +25,8 @@ func resourceAwsFlowLog() *schema.Resource {
"log_group_name": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
Required: true,
ForceNew: true,
},
"vpc_id": &schema.Schema{