Fix formatting
This commit is contained in:
parent
74587baa4a
commit
55ac68e0a2
|
@ -1,31 +1,31 @@
|
||||||
package aws
|
package aws
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/hashicorp/terraform/helper/schema"
|
"github.com/hashicorp/terraform/helper/schema"
|
||||||
)
|
)
|
||||||
|
|
||||||
// See http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-getting-started.html#step-2
|
// See http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-getting-started.html#step-2
|
||||||
var billingAccountId = "386209384616"
|
var billingAccountId = "386209384616"
|
||||||
|
|
||||||
func dataSourceAwsBillingServiceAccount() *schema.Resource {
|
func dataSourceAwsBillingServiceAccount() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Read: dataSourceAwsBillingServiceAccountRead,
|
Read: dataSourceAwsBillingServiceAccountRead,
|
||||||
|
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
"arn": &schema.Schema{
|
"arn": &schema.Schema{
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func dataSourceAwsBillingServiceAccountRead(d *schema.ResourceData, meta interface{}) error {
|
func dataSourceAwsBillingServiceAccountRead(d *schema.ResourceData, meta interface{}) error {
|
||||||
d.SetId(billingAccountId)
|
d.SetId(billingAccountId)
|
||||||
|
|
||||||
d.Set("arn", "arn:aws:iam::"+billingAccountId+":root")
|
d.Set("arn", "arn:aws:iam::"+billingAccountId+":root")
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue