goto https://console.aws.amazon.com/s3/home?region=us-west-2#
create a bucket: awscostice
add policy more or less like this:
{
"Version": "2008-10-17",
"Id": "Policy1335892530063",
"Statement": [
resources: | |
Resources: | |
MyTableResource: | |
Type: AWS::DynamoDB::Table | |
Properties: | |
TableName: my-table-name | |
ProvisionedThroughput: | |
ReadCapacityUnits: 5 | |
WriteCapacityUnits: 5 | |
AttributeDefinitions: |
goto https://console.aws.amazon.com/s3/home?region=us-west-2#
create a bucket: awscostice
add policy more or less like this:
{
"Version": "2008-10-17",
"Id": "Policy1335892530063",
"Statement": [
# 1. update your aws cli | |
# https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html | |
# | |
# 2. update your existing cluster with capacity providers support | |
CLUSTER_NAME=fargate | |
SERVICE_NAME=myservice | |
FARGATE_WEIGHT=1 | |
FARGATE_SPOT_WEIGHT=1 | |
FARGATE_BASE=1 | |
FARGATE_SPOT_BASE=0 |
原文:Linux中国
本文摘自AWS技术爱好者Florian Schäffler的博客,已获原文作者授权进行编辑和发布。
正如我非常喜爱AWS和它的产品一样,我很渴望能够为它工作,所以我决定抓住机会,通过他们的全球招聘网站Amazon Jobs 申请了一些职位。在这篇文章里,我会分享给大家一些申请过程中的心得和真实感受。
小记:遗憾的是,我并没有得到offer,在面试流程的最终环节被婉拒。所以这篇文章绝对不是指导你如何正确准备申请过程并拿到offer,更多的还是我的个人经历分享。
咱们开始吧
{ | |
"AWSEBDockerrunVersion": "1", | |
"Image": { | |
"Name": "<AWS_ACCOUNT_ID>.dkr.ecr.us-east-1.amazonaws.com/<NAME>:<TAG>", | |
"Update": "true" | |
}, | |
"Ports": [ | |
{ | |
"ContainerPort": "443" | |
} |
# force HTTP to HTTPS - /etc/nginx/conf.d/nonssl.conf | |
server { | |
listen 80; | |
server_name jira.example.com; | |
access_log off; | |
return 301 https://$server_name$request_uri; | |
} | |
# /etc/nginx/conf.d/jira.conf | |
server { |
service: service-name | |
provider: | |
name: aws | |
runtime: nodejs6.10 | |
functions: | |
myfunc: | |
handler: handler.myfunc |
--- | |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: some-sftp-server | |
Parameters: | |
HostedZoneIdParam: | |
Type: String | |
Description: Hosted Zone ID | |
SFTPHostnameParam: | |
Type: String |
Update (2022): https://gist.github.com/atyachin/2f7c6054c4cd6945397165a23623987d | |
Steps for installing the Android Emulator from EC2 console: | |
----------------------------------------------------------- | |
sudo apt install default-jdk | |
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip | |
unzip sdk-tools-linux-4333796.zip -d android-sdk | |
sudo mv android-sdk /opt/ | |
export ANDROID_SDK_ROOT=/opt/android-sdk |
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker
now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start