Skip to content

Instantly share code, notes, and snippets.

@arsdehnel
arsdehnel / iam-terraform-create-policy.tf
Last active September 21, 2023 18:12
AWS IAM policies for running Terraform from an EC2 instance.
resource "aws_iam_policy" "terraform_create_policy" {
name = "terraform_create_policy"
path = "/"
policy = "${data.aws_iam_policy_document.terraform_create_policy.json}"
}
data "aws_iam_policy_document" "terraform_create_policy" {
statement {
sid = "1"
actions = [
@Dalmirog-zz
Dalmirog-zz / AddStepTemplate.ps1
Created April 16, 2015 18:56
Add step template
$OctopusAPIKey = "YourApiKey"
$OctopusURL = "YourOctopusURL"
$header = @{ "X-Octopus-ApiKey" = $OctopusAPIKey }
$steptemplateJson = Get-Content .\StepTemplate.txt #This file should contain the full Json of the step template
Invoke-RestMethod $OctopusURL/api/actiontemplates -Method Post -Headers $header -Body $steptemplateJson
@untergeek
untergeek / crontab
Created July 22, 2014 14:43
curator script info
30 2 * * * ~/bin/curator.sh &> /dev/null