text Terraform v0.11.14
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text Terraform v0.11.14相关的知识,希望对你有一定的参考价值。
#version 0.11.14
echo $PATH
chmod +x terraform
cd -
terraform init
terraform workspace list
terraform workspace select sandbox
terraform apply
alias tf=terraform
tf workspace select production
tf apply -target module.data_streams
git commit -p --amend
git log --oneline
git push -f
#after apply
Terraform will perform the following actions:
~ module.cloudwatch.aws_lambda_function.cloudwatch_to_slack
filename: "/home/sebastian/projects/bi-terraform/.terraform/modules/d34382c077c2827524028101ffdac827/files/cloudwatch_to_slack.zip" => "/Users/brunaboaventura/friday/terraform/.terraform/modules/d34382c077c2827524028101ffdac827/files/cloudwatch_to_slack.zip"
last_modified: "2018-08-14T13:39:51.136+0000" => <computed>
~ module.data_streams.aws_glue_trigger.daily_transform[5]
enabled: "true" => "false"
~ module.data_streams.aws_iam_role_policy.glue_transform[14]
policy: "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"ReadSources\",\n \"Effect\": \"Allow\",\n \"Action\": \"s3:GetObject\",\n \"Resource\": \"arn:aws:s3:::friday-data-pool-sandbox/processed/policy-history_v1/*\"\n },\n {\n \"Sid\": \"DecryptSources\",\n \"Effect\": \"Allow\",\n \"Action\": \"kms:Decrypt\",\n \"Resource\": \"arn:aws:kms:eu-west-1:244787737839:key/42a3b057-3a52-4646-ae28-7287af6864d2\"\n },\n {\n \"Sid\": \"WriteErrorReports\",\n \"Effect\": \"Allow\",\n \"Action\": \"s3:PutObject\",\n \"Resource\": \"arn:aws:s3:::friday-data-lake-sandbox/processing_errors/portfolio-policies/*\"\n },\n {\n \"Sid\": \"EncryptErrorReports\",\n \"Effect\": \"Allow\",\n \"Action\": \"kms:GenerateDataKey\",\n \"Resource\": \"arn:aws:kms:eu-west-1:244787737839:key/6bd8285e-d0d8-4f55-9849-5b979d987f1d\"\n },\n {\n \"Sid\": \"TouchRootFolder\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"s3:PutObject\",\n \"s3:GetObject\"\n ],\n \"Resource\": \"arn:aws:s3:::friday-data-pool-sandbox/processed_$folder$\"\n },\n {\n \"Sid\": \"WriteResults\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"s3:PutObject\",\n \"s3:GetObject\"\n ],\n \"Resource\": [\n \"arn:aws:s3:::friday-data-pool-sandbox/processed/portfolio-policies_v1_$folder$\",\n \"arn:aws:s3:::friday-data-pool-sandbox/processed/portfolio-policies_v1/*\"\n ]\n },\n {\n \"Sid\": \"DeleteFiles\",\n \"Effect\": \"Allow\",\n \"Action\": \"s3:DeleteObject\",\n \"Resource\": [\n \"arn:aws:s3:::friday-data-pool-sandbox/processed/portfolio-policies_v1_$folder$\",\n \"arn:aws:s3:::friday-data-pool-sandbox/processed/portfolio-policies_v1/*\"\n ]\n },\n {\n \"Sid\": \"ListResultsBucket\",\n \"Effect\": \"Allow\",\n \"Action\": \"s3:ListBucket\",\n \"Resource\": \"arn:aws:s3:::friday-data-pool-sandbox\"\n },\n {\n \"Sid\": \"EncryptResults\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"kms:GenerateDataKey\",\n \"kms:Decrypt\"\n ],\n \"Resource\": \"arn:aws:kms:eu-west-1:244787737839:key/42a3b057-3a52-4646-ae28-7287af6864d2\"\n },\n {\n \"Sid\": \"AccessToConfigAndCode\",\n \"Effect\": \"Allow\",\n \"Action\": \"s3:GetObject\",\n \"Resource\": [\n \"arn:aws:s3:::fridev-bi-sandbox/glue-site-packages/static/*\",\n \"arn:aws:s3:::fridev-bi-sandbox/glue-site-packages/site-packages.zip\",\n \"arn:aws:s3:::fridev-bi-sandbox/glue-site-packages/main.py\",\n \"arn:aws:s3:::fridev-bi-sandbox/glue-site-packages/JavaLib.jar\",\n \"arn:aws:s3:::friday-data-lake-sandbox/config.json\"\n ]\n },\n {\n \"Sid\": \"DecryptCode\",\n \"Effect\": \"Allow\",\n \"Action\": \"kms:Decrypt\",\n \"Resource\": \"arn:aws:kms:eu-west-1:244787737839:key/18e3e6ed-72c5-476d-90e3-e122800f74d5\"\n },\n {\n \"Sid\": \"DecryptConfig\",\n \"Effect\": \"Allow\",\n \"Action\": \"kms:Decrypt\",\n \"Resource\": \"arn:aws:kms:eu-west-1:244787737839:key/6bd8285e-d0d8-4f55-9849-5b979d987f1d\"\n }\n ]\n}" => "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"ReadSources\",\n \"Effect\": \"Allow\",\n \"Action\": \"s3:GetObject\",\n \"Resource\": \"arn:aws:s3:::friday-data-lake-sandbox/ingested/portfolio-policies/*\"\n },\n {\n \"Sid\": \"DecryptSources\",\n \"Effect\": \"Allow\",\n \"Action\": \"kms:Decrypt\",\n \"Resource\": \"arn:aws:kms:eu-west-1:244787737839:key/6bd8285e-d0d8-4f55-9849-5b979d987f1d\"\n },\n {\n \"Sid\": \"WriteErrorReports\",\n \"Effect\": \"Allow\",\n \"Action\": \"s3:PutObject\",\n \"Resource\": \"arn:aws:s3:::friday-data-lake-sandbox/processing_errors/portfolio-policies/*\"\n },\n {\n \"Sid\": \"EncryptErrorReports\",\n \"Effect\": \"Allow\",\n \"Action\": \"kms:GenerateDataKey\",\n \"Resource\": \"arn:aws:kms:eu-west-1:244787737839:key/6bd8285e-d0d8-4f55-9849-5b979d987f1d\"\n },\n {\n \"Sid\": \"TouchRootFolder\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"s3:PutObject\",\n \"s3:GetObject\"\n ],\n \"Resource\": \"arn:aws:s3:::friday-data-pool-sandbox/processed_$folder$\"\n },\n {\n \"Sid\": \"WriteResults\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"s3:PutObject\",\n \"s3:GetObject\"\n ],\n \"Resource\": [\n \"arn:aws:s3:::friday-data-pool-sandbox/processed/portfolio-policies_v1_$folder$\",\n \"arn:aws:s3:::friday-data-pool-sandbox/processed/portfolio-policies_v1/*\"\n ]\n },\n {\n \"Sid\": \"DeleteFiles\",\n \"Effect\": \"Allow\",\n \"Action\": \"s3:DeleteObject\",\n \"Resource\": [\n \"arn:aws:s3:::friday-data-pool-sandbox/processed/portfolio-policies_v1_$folder$\",\n \"arn:aws:s3:::friday-data-pool-sandbox/processed/portfolio-policies_v1/*\"\n ]\n },\n {\n \"Sid\": \"ListResultsBucket\",\n \"Effect\": \"Allow\",\n \"Action\": \"s3:ListBucket\",\n \"Resource\": \"arn:aws:s3:::friday-data-pool-sandbox\"\n },\n {\n \"Sid\": \"EncryptResults\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"kms:GenerateDataKey\",\n \"kms:Decrypt\"\n ],\n \"Resource\": \"arn:aws:kms:eu-west-1:244787737839:key/42a3b057-3a52-4646-ae28-7287af6864d2\"\n },\n {\n \"Sid\": \"AccessToConfigAndCode\",\n \"Effect\": \"Allow\",\n \"Action\": \"s3:GetObject\",\n \"Resource\": [\n \"arn:aws:s3:::fridev-bi-sandbox/glue-site-packages/static/*\",\n \"arn:aws:s3:::fridev-bi-sandbox/glue-site-packages/site-packages.zip\",\n \"arn:aws:s3:::fridev-bi-sandbox/glue-site-packages/main.py\",\n \"arn:aws:s3:::fridev-bi-sandbox/glue-site-packages/JavaLib.jar\",\n \"arn:aws:s3:::friday-data-lake-sandbox/config.json\"\n ]\n },\n {\n \"Sid\": \"DecryptCode\",\n \"Effect\": \"Allow\",\n \"Action\": \"kms:Decrypt\",\n \"Resource\": \"arn:aws:kms:eu-west-1:244787737839:key/18e3e6ed-72c5-476d-90e3-e122800f74d5\"\n },\n {\n \"Sid\": \"DecryptConfig\",\n \"Effect\": \"Allow\",\n \"Action\": \"kms:Decrypt\",\n \"Resource\": \"arn:aws:kms:eu-west-1:244787737839:key/6bd8285e-d0d8-4f55-9849-5b979d987f1d\"\n }\n ]\n}"
~ module.segment.aws_lambda_function.this
filename: "/home/sebastian/projects/bi-terraform/.terraform/modules/4ba342678186810d84f0517340086a0e/noop_python_file.zip" => "/Users/brunaboaventura/friday/terraform/.terraform/modules/4ba342678186810d84f0517340086a0e/noop_python_file.zip"
last_modified: "2018-10-22T08:53:54.841+0000" => <computed>
~ module.crawler_metadata_service.module.database.aws_db_instance.this
engine_version: "10.9" => "10.6"
Plan: 0 to add, 5 to change, 0 to destroy.
Do you want to perform these actions in workspace "sandbox"?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: no
Error: Apply cancelled.
以上是关于text Terraform v0.11.14的主要内容,如果未能解决你的问题,请参考以下文章
text DigitalOcean Terraform模块服务定义