Skip to content

Instantly share code, notes, and snippets.

View aaron-lane's full-sized avatar
⚛️
Terraforming

Aaron Lane aaron-lane

⚛️
Terraforming
View GitHub Profile
@aaron-lane
aaron-lane / real-time-enforcer-local
Last active July 19, 2019 15:48
terraform-google-forseti manual verification
-----> Verifying <real-time-enforcer-local>... [99/1985]
$$$$$$ Running command `terraform workspace select kitchen-terraform-real-time-enforcer-local` in directory /cft/workdir/test/fixture
s/real_time_enforcer
$$$$$$ Running command `terraform output -json` in directory /cft/workdir/test/fixtures/real_time_enforcer
gcp: Verifying
Profile: real_time_enforcer
Version: (not specified)
@aaron-lane
aaron-lane / destroy.log
Created June 24, 2019 20:03
Errors from `kitchen destroy simple`
21 error(s) occurred:
* module.forseti-install-simple.module.forseti-install-simple.module.server.google_project_iam_member.server_roles[4] (destroy): 1
error(s) occurred:
* google_project_iam_member.server_roles.4: Error applying IAM policy for project "forseti-test-64ce": Error setting IAM policy
for project "forseti-test-64ce": googleapi: Error 403: The caller does not have permission, forbidden
* module.forseti-install-simple.module.forseti-install-simple.module.server.google_organization_iam_member.org_read[3] (destroy):
1 error(s) occurred:
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
- destroy
-/+ destroy and then create replacement
<= read (data resources)
Terraform will perform the following actions:
-/+ google_project_iam_member.additive_sa_role (new resource required)
../../../helpers/migrate.py --dryrun terraform.tfstate.d/kitchen-terraform-full-local/terraform.tfstate terraform.tfstate.d/kitchen-terraform-full-local/terraform.tfstate.new
cp terraform.tfstate.d/kitchen-terraform-full-local/terraform.tfstate terraform.tfstate.d/kitchen-terraform-full-local/terraform.tfstate.new
---- Migrating the following project-factory modules:
-- module.project-factory
terraform state mv -state terraform.tfstate.d/kitchen-terraform-full-local/terraform.tfstate.new module.project-factory.random_id.random_project_id_suffix module.project-factory.module.project-factory.random_id.random_project_id_suffix
terraform state mv -state terraform.tfstate.d/kitchen-terraform-full-local/terraform.tfstate.new module.project-factory.google_project.project module.project-factory.module.project-factory.google_project.project
terraform state mv -state terraform.tfstate.d/kitchen-terraform-full-local/terraform.tfstate.new module.project-factory.google_project_service.project_services[0] module.project-fa
@aaron-lane
aaron-lane / apply.log
Created December 28, 2018 00:02
`terraform apply` output
2018/12/27 23:54:59 [INFO] Terraform version: 0.11.11 ac4fff416318bf0915a0ab80e062a99ef3724334
2018/12/27 23:54:59 [INFO] Go runtime version: go1.11.1
2018/12/27 23:54:59 [INFO] CLI args: []string{"/home/aaronlane/bin/terraform", "apply", "-auto-approve"}
2018/12/27 23:54:59 [DEBUG] Attempting to open CLI config file: /home/aaronlane/.terraformrc
2018/12/27 23:54:59 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/12/27 23:54:59 [INFO] CLI command args: []string{"apply", "-auto-approve"}
2018/12/27 23:54:59 [INFO] command: empty backend config, returning nil
2018/12/27 23:54:59 [DEBUG] command: no data state file found for backend config
2018/12/27 23:54:59 [DEBUG] New state was assigned lineage "8826a9b9-4076-6dfa-696e-0b2850a671e8"
2018/12/27 23:54:59 [INFO] command: backend initialized: <nil>
@aaron-lane
aaron-lane / keybase.md
Last active July 20, 2021 15:20
Proof of my GitHub identity for Keybase

Keybase proof

I hereby claim:

  • I am aaron-lane on github.
  • I am aaron_lane (https://keybase.io/aaron_lane) on keybase.
  • I have a public key ASDLQYxREiV5benV3UoHr4ciYHaQNhqpHjXTOmkTxqPf2wo

To claim this, I am signing this object:

@aaron-lane
aaron-lane / gist:a2b8ba44c9a50bdbf0ac
Last active August 29, 2015 14:21
Ruby block precedence
# {} is given higher precedence than do..end by the interpreter
def foo a = 'foo', &b
b ||= proc { 'foo' }
puts b.call.concat a
end
def bar &b
b ||= proc { 'bar' }
@aaron-lane
aaron-lane / gist:39610c8c307d73b34430
Created May 20, 2015 22:10
CentOS 7.1 RSyslog Config
# rsyslog configuration file
# For more information see /usr/share/doc/rsyslog-*/rsyslog_conf.html
# If you experience problems, see http://www.rsyslog.com/doc/troubleshoot.html
#### MODULES ####
# The imjournal module bellow is now used as a message source instead of imuxsock.
$ModLoad imuxsock # provides support for local system logging (e.g. via logger command)
$ModLoad imjournal # provides access to the systemd journal
@aaron-lane
aaron-lane / library_foo.rb
Created May 19, 2015 16:22
What the stub?
module Foo
def self.bar
fail 'biz'
end
end
control '2.1 Create Separate Partition for /tmp' do
describe command 'grep "[[:space:]]/tmp[[:space:]]" /etc/fstab' do
its(:stdout) { is_expected.to_not be_empty }
end
end