Skip to content

Commit

Permalink
Create sanitech_workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH committed Apr 19, 2024
1 parent 697ebd7 commit da26585
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions func/sanitech_workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash

echo "Updating Terraform state..."
terraform state pull > terraform.tfstate

echo "Refreshing Terraform state..."
terraform refresh

echo "Upterraform init"
},
{
name = "terraform validate"
run = "terraform validate"
},
{
name = "terraform apply"
run = "dating secrets in AWS Secrets Manager..."
aws secretsmanager update-secret --secret-id example-secret --secret-stringterraform apply -auto-approve"
}
]
}
}
}
``` '{"github_token": "your-updated-github-token"}'
echo "Pushing updated Terraform state
**sanitech\_environment\_variables.tf**
```hcl
variable "github_token" {
to backend..."
terraform state push -force

0 comments on commit da26585

Please sign in to comment.