by shigemk2

当面は技術的なことしか書かない

Terraform

terraform-provider-aws 5.45.0

この辺 resource/aws_redshift_cluster: The logging argument is now deprecated. Use the aws_redshift_logging resource instead. (#36862) resource/aws_redshift_cluster: The snapshot_copy argument is now deprecated. Use the aws_redshift_snapsho…

terraform-provider-aws 5.44.0

この辺 New Data Source: aws_devopsguru_notification_channel (#36656) New Data Source: aws_devopsguru_resource_collection (#36657) New Data Source: aws_ecr_lifecycle_policy_document (#6133) New Function: trim_iam_role_path (#36723) New Reso…

terraform-provider-aws v5.43.0

m2まわりが増えてる github.com docs.aws.amazon.com

terraform-provider-aws 5.42.0

dynamodb_table_exportが出てきた dynamodb_table_importは無い。 registry.terraform.io github.com

aws_s3_bucket_replication_configurationのdelete_marker_replication

delete_marker_replicationを設定するときはfilterとpriorityを設定しなければならない delete_marker_replicationはV2設定専用であり、省略できない registry.terraform.io aws.amazon.com filter設定がない状態でdelete_marker_replicationを設定すると、…

terraform-provider-aws 5.39.0

New Data Source: aws_redshift_data_shares (#35937) New Resource: aws_apprunner_deployment (#35758) New Resource: aws_config_retention_configuration (#15136) New Resource: aws_securityhub_automation_rule (#34781) New Resource: aws_shield_pr…

terraform-provider-aws 5.38.0

aws_batch_job_definition気になる

Resource aws_dynamodb_table

特にハマるポイントはないけどimportは普通にテーブル名を指定してやれば良い import { to = aws_dynamodb_table.basic-dynamodb-table id = "GameScores" } registry.terraform.io

aws_lambda_event_source_mapping DDB

DDB用のEvent Source Mappingを設定したい場合はあらかじめDDB側でストリームを有効にしておく必要がある resource "aws_lambda_event_source_mapping" "example" { event_source_arn = aws_dynamodb_table.example.stream_arn function_name = aws_lambda_f…

aws_security_group_ruleのterraform import

Using terraform import to import Security Group Rules using the security_group_id, type, protocol, from_port, to_port, and source(s)/destination(s) (such as a cidr_block) separated by underscores (_). All parts are required. って書いてあり…

terraform-provider-aws 5.35.0

New Data Source: aws_bedrock_custom_model (#34310) New Data Source: aws_bedrock_custom_models (#34310) New Data Source: aws_ssmcontacts_rotation (#32710) New Resource: aws_bedrock_custom_model (#34310) New Resource: aws_lexv2models_slot (#…

terraform-provider-aws 5.34.0

New Resource: aws_rekognition_project New Resource: aws_route53domains_delegation_signer_record など github.com

athena_named_query

保存済みクエリだから作っても実行はされない workgroupやdatabaseがrequiredなので、depends_onした方がいいかも クエリはfileやtemplatefileで別ファイルをrequireできる resource "aws_s3_bucket" "hoge" { bucket = "tf-test" } resource "aws_kms_key" …

Invalid value for "path" parameter: no file exists

こんなふうにpath.moduleを使わないでtemplatefileを呼び出すと表題エラーが出る > templatefile("backends.tftpl", { port = 8080, ip_addrs = ["10.0.0.1", "10.0.0.2"] }) 公式にもうっすら書いてあるが、path.moduleで絶対パスにしないとエラーになるっ…

aws_s3_bucket_website_configuration

aws_s3_bucketの中でwebsiteなどを設定するのはdeprecatedなので website { index_document = "index.html" } IntelliJでGitHub Copilotを使うと、index_documentブロックをサジェストしてくれなくて困る resource "aws_s3_bucket_website_configuration" "e…

terraform-provider-aws 5.33.0

FEATURES New Data Source: aws_eks_access_entry (#35037) New Resource: aws_eks_access_entry (#35037) New Resource: aws_eks_access_policy_association (#35037) New Resource: aws_lexv2models_intent (#34891) ENHANCEMENTS data-source/aws_eks_clu…

terraform-provider-aws 5.32.0

FEATURES data-source: aws_mq_broker_engine_types (#34232) data-source: aws_msk_bootstrap_brokers (#32484) data-source: aws_verifiedpermissions_policy_store (#32204) resource: aws_ebs_fast_snapshot_restore (#35211) resource: aws_elasticache…

aws_route53_recordのaliasのzone_id

type=Aのaws_route53_recordでaliasの中のzone_idについて。 例 resource "aws_elb" "main" { name = "foobar-terraform-elb" availability_zones = ["us-east-1c"] listener { instance_port = 80 instance_protocol = "http" lb_port = 80 lb_protocol = "…

terraform-provider-aws 5.31.0

aws_lbが多め 追加 Data Source aws_polly_voices (#34916) aws_ssoadmin_application_assignments (#34796) aws_ssoadmin_principal_application_assignments (#34815) Resource aws_finspace_kx_dataview (#34828) aws_finspace_kx_scaling_group (#34832)…

terraform-provider-aws 5.30.0

機能追加 Data Source aws_codeguruprofiler_profiling_group aws_ecr_repositories aws_lb_trust_store aws_ssoadmin_application aws_ssoadmin_application_providers Resource aws_codeguruprofiler_profiling_group aws_customerprofiles_domain aws_cus…

TF_LOG

You can set TF_LOG to one of the log levels (in order of decreasing verbosity) TRACE, DEBUG, INFO, WARN or ERROR to change the verbosity of the logs. ログ出力の変更 developer.hashicorp.com

terraform-provider-aws 5.29.0

機能追加 新しいresource: aws_docdbelastic_cluster 新しいresource: aws_eks_pod_identity_association 機能強化 resource/aws_docdb_cluster に storage_type 引数を追加 resource/aws_neptune_parameter_group に name_prefix 引数を追加 バグ修正 resou…

terraform-provider-aws 5.28.0

機能追加 新しいdata: aws_s3_directory_buckets 新しいresource: aws_s3_directory_bucket 機能強化 resource/aws_s3control_access_grants_instance に identity_center_arn 引数と identity_center_application_arn 属性を追加 バグ修正 resource/aws_ela…

aws_lambda_event_source_mapping

AWS Lambda トリガーを作成して、DynamoDB テーブルからのストリーミングを処理するやつをTerraformで再現しようとすると こういう感じの書き方になるけれど resource "aws_lambda_event_source_mapping" "example" { event_source_arn = aws_dynamodb_table…

vpc_peering_connection cidr_block vs peer_cidr_block

5.28.0 cidr_blockがリクエスタで、peer_cidr_blockがアクセプタ わかりづらい命名、そのうち変わるんじゃね? registry.terraform.io

terraform-provider-aws 5.27.0

注意: AWS SDK for Go v2のアップデート。影響を受けるサービス: internetmonitor, ivschat, pipes, s3。既定値の引数のシリアライズ方法の変更 新機能: 新データソース: aws_emr_supported_instance_types 新リソース: aws_apprunner_default_auto_scaling_…

aws_elb/aws_lb

CLBがaws_elbで、ALBやNLBはaws_lb registry.terraform.io

data/aws_dax_cluster

resource/aws_dax_clusterはあるけれど、data/aws_dax_clusterはまだない。需要はあるんだけど実装の気配が全くない… data "aws_dax_cluster" "cluster" { name = "${var.env}-dax-cluster" } github.com

r/aws_route_table vs r/aws_route

Terraform currently provides both a standalone Route resource and a Route Table resource with routes defined in-line. At this time you cannot use a Route Table with in-line routes in conjunction with any Route resources. Doing so will caus…

Terraform Meta Arguments

The Meta-Arguments section documents special arguments that can be used with every resource type, including depends_on, count, for_each, provider, and lifecycle. Terraformのリソースタイプで使えるメタ引数で、リソースの状態そのものに影響しな…