|
195 | 195 | resource.aws_s3_bucket_object = lib.flip lib.mapAttrs' config.cluster.awsAutoScalingGroups (name: group: |
196 | 196 | lib.nameValuePair "${name}-flake" rec { |
197 | 197 | bucket = config.cluster.s3Bucket; |
198 | | - key = with config; "infra/secrets/${cluster.name}/${cluster.kms}/source/${name}-source.tar.xz"; |
199 | | - etag = var ''filemd5("${source}")''; |
| 198 | + key = with config; "infra/secrets/${cluster.name}/${cluster.kms}/source/${name}-source.tar.xz"; |
| 199 | + etag = var ''filemd5("${source}")''; |
200 | 200 | source = "${pkgs.runCommand "source.tar.xz" {} '' |
201 | 201 | tar cvf $out -C ${config.cluster.flakePath} . |
202 | 202 | ''}"; |
|
344 | 344 | requesterMeshPeeringOptions = mapAwsAsgVpcPeers (link: |
345 | 345 | lib.nameValuePair "${link.connector}-connect-${link.accepter}" { |
346 | 346 | provider = awsProviderFor link.connector; |
347 | | - vpc_peering_connection_id = id |
| 347 | + vpc_peering_connection_id = |
| 348 | + id |
348 | 349 | "aws_vpc_peering_connection_accepter.${link.accepter}-accept-${link.connector}"; |
349 | 350 |
|
350 | 351 | requester = {allow_remote_vpc_dns_resolution = true;}; |
|
388 | 389 | name = group.uid; |
389 | 390 | inherit (group.iam.instanceProfile) path; |
390 | 391 | role = var "data.aws_iam_role.${config.cluster.iam.roles.client.uid}.name"; |
391 | | - lifecycle = [{ create_before_destroy = true; }]; |
| 392 | + lifecycle = [{create_before_destroy = true;}]; |
392 | 393 | }); |
393 | 394 |
|
394 | 395 | data.aws_iam_role = let |
|
411 | 412 | inherit (policy) condition; |
412 | 413 | }); |
413 | 414 | }; |
414 | | - in lib.mapAttrs' op role.policies; |
| 415 | + in |
| 416 | + lib.mapAttrs' op role.policies; |
415 | 417 |
|
416 | 418 | resource.aws_iam_role_policy = let |
417 | 419 | # deploy for client role |
|
422 | 424 | role = id "data.aws_iam_role.${role.uid}"; |
423 | 425 | policy = var "data.aws_iam_policy_document.${policy.uid}.json"; |
424 | 426 | }; |
425 | | - in lib.mapAttrs' op role.policies; |
| 427 | + in |
| 428 | + lib.mapAttrs' op role.policies; |
426 | 429 |
|
427 | 430 | resource.aws_security_group = |
428 | 431 | lib.flip lib.mapAttrsToList config.cluster.awsAutoScalingGroups |
|
0 commit comments