Skip to content

Commit

Permalink
improve resource generation
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWoolfenden committed Feb 4, 2024
1 parent da182e1 commit b5d0a2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 2 additions & 5 deletions resource.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,8 @@ else

if ($type -eq "data")
{
$content = @"data `"$resource`" `"pike`" {
}"@
$output = @"output `"$resource`" {
value=data.$resource.pike
}"@
$content = "data `"$resource`" `"pike`" {`n}`n`n"
$output = "output `"$resource`" {`n value = data.$resource.pike`n}"
$content = $content + $output
$tffile = path terraform $provider "$type.$resource.tf"
}
Expand Down
5 changes: 1 addition & 4 deletions src/coverage/aws.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# todo aws

Resource percentage coverage 49.85
Datasource percentage coverage 99.42
Datasource percentage coverage 100.00

./resource.ps1 aws_accessanalyzer_archive_rule
./resource.ps1 aws_acmpca_permission
Expand Down Expand Up @@ -665,6 +665,3 @@ Datasource percentage coverage 99.42
./resource.ps1 aws_worklink_website_certificate_authority_association
./resource.ps1 aws_workspaces_connection_alias
./resource.ps1 aws_workspaces_ip_group
./resource.ps1 aws_bedrock_custom_model -type data
./resource.ps1 aws_bedrock_custom_models -type data
./resource.ps1 aws_ssmcontacts_rotation -type data

0 comments on commit b5d0a2b

Please sign in to comment.