首页 > 其他分享 >AWS

AWS

时间:2024-03-04 21:45:21浏览次数:28  
标签:S3 create AWS instance EC2 NAT routing

① 用户登录instance

使用AMI 创建 instance
连接 instance: 输入Ipv4 Ip + auth (private key file)
命令:aws s3 ls   用来list bucket(但此时缺少credentials) => 
1. 创建用户 IAM -> add user -> add auth -> download .csv
2. 配置用户凭证credentials:aws configure -> access Key ID + region name
aws s3 ls
aws ec2 describe-instance
aws ec2 stop-instance --instance-ids xxx

 

② cloudformation - template

-> choose WordPress blog -> 最后输出web url: 创建自己的blog网站

 

③ Dynamo: 复杂,容量大,session_id

 

④ EFS 

1. 创建EFS, 且EFS和EC2安全组要配置成一样
第二个EC2可以通过“操作” - “配置更多类似项” 快速启动

2. 挂载:EFS - disk mounting to EC2 (using commands)
df -h // check disk usage
EFS acts like a shared disk among instances

 

⑤ ELB routing polity

ELB healthcheck 检查EC2的负载均衡
DomainName healthcheck 检查域名是否正常
不能用IP,要用domain name(ELB的DNS名称)

simple routing policy 1对1
weighted routing policy 设置50; 150; 10 ...

failover routing policy
- create record set -> EC2 选择primary,S3选择secondary(备用)
模拟EC2 stopped,但DomainName health,因为流量到S3

geolocation routing policy
hosted zones -> create record set -> EC2 -> location Asia -> Asia
create record set -> S3 -> location default -> other region

latency Routing policy

 

⑥ NAT

NAT gateway: 转private address to public addr
create private instance + public instance(自动分配共有IP)
社区AMI: NAT -> create public NAT -> 创建成功 -> 操作 ->
联网 -> 更改源/目标检查 -> 禁用!(意思是目标addr就是这个instance,但这个是NAT,转发流量)

 

⑦ S3 Transfer Acceleration

S3 -> choose a bucket -> atrribute -> Transfer Acceleration -> start

 

 

⑧ cloudFront - CDN
create cloudFront associated with an S3 bucket

 

 

⑨ lambda - auto execute code
set trigger(cron command) + (start/stop instance)code

标签:S3,create,AWS,instance,EC2,NAT,routing
From: https://www.cnblogs.com/sabertobih/p/18052780

相关文章

  • aws工具的iam使用方法
    [root@uat-nanguaapp-mysqlbackup]#cat~/.aws/config[profileall_sdk]region=us-west-1output=json[profilejfm_sdk]region=us-east-1output=json[root@uat-nanguaapp-mysqlbackup]#cat~/.aws/cconfigcredentials[root@uat-nanguaapp-mysqlbackup......
  • 迁移阿里云oss目录到aws
    1#同步阿里云oss文件到awss32importoss23importboto34importos5fromboto3.s3.transferimportTransferConfig6789#阿里云OSS配置10aliyun_access_key_id='xxx'11aliyun_access_key_secret='xxx'12aliyun_endpoint='......
  • [975] Creating a POSTMAN Api | AWS API Gateway Passing Data to AWS Lambda
    ref:AWSLambdaFunctionURLsref:GuidetoAWSLambdaFunctionURLs1.CreateaLambdaFunctionaws->Services->Lambda2.CreateaFunctionURLConfiguration->FunctionURLThen,theFunctionURLisgeneratedandcanbeseenfromtheup......
  • AWS Migration产品(MGN)
    AWS把迁移服务分为“评估”、“动员和准备”、“迁移”、“应用现代化”四个模块,每个模块下都对应着一个或者多个的AWS产品。评估Well-ArchitectedFrameworkMigrationAssessmentTools(CART,MRA)AWSMigrationEvaluatorMigrationportfolioassessment动员和准备......
  • AWS Security Group Rule的限制问题
    需要维护一批IP白名单,一个个添加到securitygroup费时,而且以后还有其它机器和服务也需要用到,因此创建了一个Prefixlist(VPC-->Managedprefixlists)里面包含77个ip完成后尝试添加到EC2的securitygroup,却提示说:Themaximumnumberofrulespersecuritygrouphasbeenrea......
  • aws ebs 报无权限错误
    awseks 创建ebs的pvc时报以下错误:WarningProvisioningFailed9m28sebs.csi.aws.com_ebs-csi-controller-79d7954f96-thd4s_9a0470ef-ef71-4c55-8a8c-2be08fdc17d9failedtoprovisionvolumewithStorageClass"gp2":rpcerror:code=Internaldesc=Couldnotc......
  • 将EC2转移到另一个AWS帐号
    1.-创建EC2AMI2.-创建好后选择EditAMIPermission添加需要共享的AWS帐号3.-登入对应帐号AWSconsole界面进入AMI,选择Privateimages即可看到......
  • 强大的AWS lambda
    AWS强大的lambda自从几年前换工作后,我所参与的项目一直都是基于AWS云服务的架构,我慢慢对serverless的相关基础建设有了一定了解和实践经验。其中lambda是我心中最强大的serveless服务,是很好的高并发业务解决方案。什么是lambdalambda是AWS提供的一种无服务器的计算服务,根据请......
  • AWS ECS + CloudMap + Lambda workshop (一)
    第一篇:创建一个由ECS托管的nodejs服务一)创建拥有AdministratorAccess的IAMUser,在权限设置时,直接给予AdministratorAccess二)ECR服务注册代码仓库输入名称,完成Copy镜像库的URIXXXXXXXX.dkr.ecr.cn-northwest-1.amazonaws.com.cn/nodejs-test-app使用docker命令上传代......
  • AWS-SAA C03 题库 —— PART04 131-200
    131.Acompanyisdevelopingafile-sharingapplicationthatwilluseanAmazonS3bucketforstorage.ThecompanywantstoserveallthefilesthroughanAmazonCloudFrontdistribution.Thecompanydoesnotwantthefilestobeaccessiblethroughdirect......