AWS(154)
-
gradle boot jar default name
- 개요 build.gradle에서 boot.jar 설정을 제거후 codebuild에서 build 할 경우 - 결과 .jar 가 아닌 src.jar로 생성 - reference https://jar-download.com/artifacts/junit/junit/3.8.1/source-code/build.xml
2022.12.14 -
athena create table error
- 개요 athena create table할때 아래와 같은 에러가 날 경우 - 에러 메세지 line 1:8: mismatched input 'EXTERNAL'. Expecting: 'MATERIALIZED', 'OR', 'ROLE', 'SCHEMA', 'TABLE', 'VIEW' - 해결 방법 table name에 - 이 포함된 경우이므로 - 을 _ 로 변경후 create table을 run 하면 된다.
2022.12.12 -
ELB Target이 전부 unhealthy할 경우 traffic 전달됨.
- 개요 ELB Target이 전부 unhealthy할 경우 traffic 전달됨. - 관련 문서 If a target group contains only unhealthy registered targets, the load balancer routes requests to all those targets, regardless of their health status. This means that if all targets fail health checks at the same time in all enabled Availability Zones, the load balancer fails open. The effect of the fail-open is to allow traffic to all tar..
2022.12.09 -
route53 dns query logging
- 개요 route53의 DNS 쿼리로그를 남기면 CloudWatch Logs에서 확인이 가능하다. - 설정 방법 https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/query-logs.html - 모니터링 ## cloudwatch loggroup awslogs get --aws-region us-east-1 -S -G --watch
2022.12.06 -
Unable to update platform version on services with a CODE_DEPLOY deployment controller. Use AWS CodeDeploy to trigger a new deployment
- 개요 CodeDeloy로 B/G deployment가 구성되어 있는 ECS의 경우 desired count를 AWS Web Console에서 변경을 시도할 경우 에러가 발생한다. - 에러 메세지 HTTP status code 400 Unable to update platform version on services with a CODE_DEPLOY deployment controller. Use AWS CodeDeploy to trigger a new deployment. - 해결 방법 (CLI를 통해 처리) aws ecs update-service --cluster --service --desired-count X
2022.11.29 -
AWS Cli under ipv6
- 개요 ipv6 사용중인 subnet에 할당된 ec2에서 aws cli 사용할 경우 에러가 발생한다 - 해결 방법 aws configure set default.s3.use_dualstack_endpoint true - 참고 https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html#cli-configure-files-where
2022.11.23 -
DocumentDB dump
- 개요 AWS document db를 파일 형식으로 Dump 하는 방법을 정리했다 - 방법1 ( mongdump 설치 on amazon linux 2 ) yum install -y https://fastdl.mongodb.org/tools/db/mongodb-database-tools-amazon2-x86_64-100.6.1.rpm - 방법2 ( mongodb tls/ssl enabled dump ) ## all database dump mongodump --ssl \ --host="sample-cluster.node.us-east-1.docdb.amazonaws.com:27017" \ --collection=sample-collection \ --out=sample-output-file \ --use..
2022.11.17 -
Amazon OpenSearch 유용한 uri
- 개요 OpenSearch의 index 및 설정을 curl을 통해 확인하고 조작하는 방법에 대해 정리했다. - 방법 ## cluster setting curl https://foobar.es.amazonaws.com/_cluster/settings?pretty ## cluster status curl https://foobar.es.amazonaws.com/_cluster/health?pretty ## cluster master status curl https://foobar.es.amazonaws.com/_cat/master?v ## index list curl https://foobar.es.amazonaws.com/_cat/indices?v ## index curl https://foobar.es..
2022.11.16 -
lambda excute role template
- 개요 Lambda를 실행하기 위한 IAM role기본 template - IAM Role & STS { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "logs:CreateLogGroup", "Resource": "aws:logs:::*" }, { "Effect": "Allow", "Action": [ "logs:CreateLogStream", "logs:PutLogEvents" ], "Resource": [ "arn:aws:logs:::log-group:/aws/lambda/function_name:*" ] } ] } { "Version": "2012-10-17", "Statement": [ { "Effect": "Al..
2022.11.15 -
internal domain 못 찾는 경우
- 현상 route53 internal domain 등록된 dns를 특정 vpc에서 못 찾는 경우 - 원인 route53 private hosted zone에 VPC 추가 - 해결 Hosted zone details : Associated VPCs에 VPC 추가 VPC setting : enableDnsHostnames // enableDnsSupport - reference https://docs.aws.amazon.com/vpc/latest/userguide/vpc-dns.html#vpc-dns-updating https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zones-private.html
2022.11.11