diff --git a/.gitignore b/.gitignore index a9e8a0c..9b8a46e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -# ---> Terraform # Local .terraform directories **/.terraform/* @@ -33,4 +32,3 @@ override.tf.json # Ignore CLI configuration files .terraformrc terraform.rc - diff --git a/.terraform.lock.hcl b/.terraform.lock.hcl new file mode 100644 index 0000000..489aefa --- /dev/null +++ b/.terraform.lock.hcl @@ -0,0 +1,46 @@ +# This file is maintained automatically by "terraform init". +# Manual edits may be lost in future updates. + +provider "registry.terraform.io/hashicorp/aws" { + version = "5.21.0" + hashes = [ + "h1:IL8+8FpwcAy46iniOrxI9zHF3s/4bGhfZR+9eyW1M9k=", + "zh:1ba1411e4f8c047950db94c236f146d4590790320c68320b4e56082d8746a507", + "zh:3185e4a34cfcad35dcf11439290a4bd0ad52d462eca2ab5d4940488a2db72833", + "zh:3c6b901f874b4d9a85301a653d0bd507b052992bd84fc81100f4e5f73b1adab7", + "zh:45d3fdbbc5804f295576b7155fdca527dedff17a014ed40c215af3bc60c329db", + "zh:47b64b453d2c373062e47a54f3df33335dc29bce6ddbbf2da9e7be768c560abe", + "zh:5cdf57ffd465288d9732d14ba13b377a8d389e0ba0ce3ac4773fd6fdfc09d6a1", + "zh:81ec4c662581a2446c78da7b27d7e0d5c2e4d50925294789ec13661817f4b5a4", + "zh:9b12af85486a96aedd8d7984b0ff811a4b42e3d88dad1a3fb4c0b580d04fa425", + "zh:ac248464fd4ce1f020c05f27e3182532a7d1af4b8185a4b4be8b906b30b0ca5a", + "zh:bbbedc6b6eaffcce0b31b397d607464f0c21c1b9406182163d504d3f392cc68d", + "zh:c2afc111f9503829ed055e2ae91d873670c57bd16acc1a3246ac3957f6998d4e", + "zh:cd3c8175b2152848113482da70e5b9c7cb4c951f2046fc0b832715300bd88b97", + "zh:cf89b0c09d426d489f9477209d4084e64ad1b598036284fa688b41de626b58e6", + "zh:d9d127637c3b9ff6e2d0a2c30f54bd48ab1de34f725a5df1a6a3d039b021e636", + "zh:dccca1090e4054d6558218406385fb0421ab4ac3b75e121641973be481a81f01", + ] +} + +provider "registry.terraform.io/integrations/github" { + version = "5.40.0" + constraints = "~> 5.0" + hashes = [ + "h1:RRRHY8+P3UoSFWgmZnyJUKPNO2Hr2kG7106ICdEGj58=", + "zh:02922b9eb54dcdbad524caaef7901a800759ae5d3a6c8cbdf934d4cfce395d5d", + "zh:282b9736c2afa9f4a7817d5da9ac0caeddb4edc085c7236b71f3ecbb539b2132", + "zh:49275a2a1b523da1794f0ea19dfc0f595d1ac8c711d24c6887bb672a5a571e01", + "zh:521bdef1fdd3211be6ba30edb3092acbed5974b62497d83028f0e8fd2d7bcd24", + "zh:62e8e8de673859a3c0c1e9fb0fd623e0012c8d9b44d45728ad1aa04d744b724c", + "zh:6fc1fbecf16b896f791d5708208295267f20cf4a62e393ecb93f70538306f30e", + "zh:6fef1d1c77ca2f77501a6ffd63640e0174905c7ae88aca516ede1a7263af8bc3", + "zh:923968a2eb3856db4e02b2e87dd0f09555531d09ad707c6dd53b1c9c3af0ff82", + "zh:95e409dfb3437171f66c97493c6ae9a75a7329c90a1d4c489663c6e3823d32af", + "zh:a45d0f1449bc2833974ba88e238a5ec0b41da64b18da626153ec0b650bf90e4c", + "zh:af5d8e506f3280ecf22824549c5b2b68ec047a0df9da0a19721b1a6303f77d5a", + "zh:ba03a3a81ebc68cc452930bca9289a5feb2b0d22d7997bea7f9e59bfd89babed", + "zh:d941df409e689f3deb06f912a57f2ee36ab223e1f48d395e3d43937e62a7fbea", + "zh:eaf71e9586b98c631218a67b1f1d7295ff224ba31b0c899e88e4aa217a160116", + ] +} diff --git a/README.md b/README.md index 0983981..254cef4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,2 @@ # terraform - -terraform configs \ No newline at end of file +Terraform Configs diff --git a/aws.tf b/aws.tf new file mode 100644 index 0000000..3f41be3 --- /dev/null +++ b/aws.tf @@ -0,0 +1,9 @@ +provider "aws" {} + +resource "aws_instance" "myec2" { + ami = "ami-041feb57c611358bd" + instance_type = "t2.micro" + tags = { + "Name" = "My EC2 - Test LOCAL" + } +} diff --git a/github.tf b/github.tf new file mode 100644 index 0000000..22d3351 --- /dev/null +++ b/github.tf @@ -0,0 +1,21 @@ +terraform { + required_providers { + github = { + source = "integrations/github" + version = "~> 5.0" + } + } +} + +# Configure the GitHub Provider +provider "github" { + token = "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" +} + +resource "github_repository" "example" { + name = "example" + description = "My awesome codebase" + + visibility = "public" + +} \ No newline at end of file diff --git a/terraform b/terraform new file mode 160000 index 0000000..3f5f9a4 --- /dev/null +++ b/terraform @@ -0,0 +1 @@ +Subproject commit 3f5f9a4f1a31287eeb706ea6a3b6b341bede8fc8