aws

DevOps

孤街醉人 提交于 2019-12-03 01:41:12
DevOps (Development和Operations的组合词)是一组过程,方法和系统统称,用于促进开发,运维和 QA 之间的沟通,协作和整合。DevOps可以看作是三者的交集。 实现DevOps的工具: 代码管理(SCM):GitHub、GitLab、BitBucket、SubVersion 构建工具:Ant、Gradle、maven 自动部署:Capistrano、CodeDeploy 持续集成(CI):Bamboo、Hudson、Jenkins 配置管理:Ansible、Chef、Puppet、SaltStack、ScriptRock GuardRail 容器: Docker 、LXC、第三方厂商如AWS 编排:Kubernetes、Core、Apache Mesos、DC/OS 服务注册与发现: Zookeeper 、etcd、Consul 脚本语言:python、ruby、shell 日志管理:ELK、Logentries 系统监控:Datadog、Graphite、Icinga、Nagios 性能监控:AppDynamics、New Relic、Splunk 压力测试:JMeter、Blaze Meter、loader.io 预警:PagerDuty、pingdom、厂商自带如AWS SNS HTTP加速器:Varnish 消息总线:ActiveMQ、SQS

aws upload object to S3 bucket and pass details of data to lambda

匿名 (未验证) 提交于 2019-12-03 01:41:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Working my way through tutorials for AWS...So ive created an S3 bucket which when a file is dropped into it calls my lambda 'testHelloWorld' which sends an email...this all works fine (see below) 'use strict' ; console . log ( 'Loading function' ); var aws = require ( 'aws-sdk' ); var ses = new aws . SES ({ region : 'us-west-2' }); exports . handler = function ( event , context ) { console . log ( "Incoming: " , event ); // var output = querystring.parse(event); var eParams = { Destination : { ToAddresses : [ "johnb@hotmail.com" ]

服务安全-IAM:百科

橙三吉。 提交于 2019-12-03 01:41:01
ylbtech-服务安全-IAM:百科 IAM(身份识别与访问管理(简称大4A)) IAM(Identity and Access Management 的缩写),即 “身份识别与访问管理” ,具有 单点登录 、强大的认证管理、基于策略的集中式 授权 和审计、动态授权、企业可管理性 等功能。 1. 返回顶部 1、 中文名:身份识别与访问管理 外文名:IAM(Identity and Access Management) 功 能:企业可管理性等功能 作 用:业务流程和管理手段 目录 1 IAM的定义 2 IAM 功能 ▪ 对您 AWS 账户的共享访问权限 ▪ 精细权限 ▪ 对 AWS 资源的安全访问权限 ▪ 多重验证 (MFA) ▪ 联合身份 ▪ 实现保证的身份信息 ▪ PCI DSS 合规性 ▪ 已与很多 AWS 服务集成 ▪ 最终一致性 ▪ 免费使用 3 关键功能 4 与4A的关系 2、 2. 返回顶部 1、 IAM的定义 AWS Identity and Access Management (IAM) 是一种 Web 服务,可以帮助您安全地控制对 AWS 资源的访问 。您可以使用 IAM 控制 对哪个用户进行身份验证 (登录) 和授权 (具有权限) 以使用资源 。 当您首次创建 AWS 账户时,最初使用的是一个对账户中所有 AWS 服务和资源有完全访问权限的单点登录身份

Uncaught Error: Script error for “aws-sdk”

匿名 (未验证) 提交于 2019-12-03 01:40:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Trying to use the AWS SDK for node but I get this error Uncaught Error: Script error for "aws-sdk" Heres my code. I tried using require('aws-sdk'), but the console error than said to use require([],()=>{}) I downloaded both require and aws-sdk from npm require(['aws-sdk'], (AWS) => { let email = document.getElementById('footerEmail'); let emailSubmit = document.getElementById('footerButton'); AWS.config.update({ region: 'us-east-1' }); let sns = new AWS.SNS(); let params = { Protocol: 'email', /* required */ TopicArn: 'arn:aws:sns:us-east-1

Execute AWS CLI command inside a pipeline Jenkins file

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Do you know how to execute AWS CLI command inside a Jenkinsfile in order to build a pipeline? I didn't find any plugins 回答1: First you need install aws cli on your server and make sure the jenkins user has permissions to run it. Or simply use the Amazon AMI when creating the EC2 instance, it comes with the aws cli. Assign a role the instance with the appropriate policy. ( it is simpler that using user key in aws configure ) Within your pipeline steps use sh 'aws ...' 回答2: First of all you need to install AWS CLI in Jenkins instance in order

AWS Lambda - Building serverless API using .NET Core

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Recently I have been looking into AWS Lambdas and how to build Serverless API using .Net Core. From what I understand, you can do it in 2 different ways. 1) Write multiple separate Lambdas in C# and deploy them to AWS. Requests come in via API gateway and each lambda acts as an endpoint. 2) Build a Serverless Web API using .Net core. When you create the serverless Web API project a Lambda is automatically created which becomes the entry point to the Web API. Are there any limitations of 1 vs 2, or use cases where one approach might

AWS Glue ETL job from AWS Redshift to S3 fails

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying out AWS Glue service to ETL some data from redshift to S3. Crawler runs successfully and creates the meta table in data catalog, however when I run the ETL job ( generated by AWS ) it fails after around 20 minutes saying "Resource unavailable". I cannot see AWS glue logs or error logs created in Cloudwatch. When I try to view them it says "Log stream not found. The log stream jr_xxxxxxxxxx could not be found. Check if it was correctly created and retry." I would appreciate it if you could provide any guidance to resolve this

Disable Spring Cloud AWS autoconfiguration for local development

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I use the following Maven dependency which autoconfigures all necessary parameters to make my project work on AWS: <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-aws</artifactId> <version>1.2.2.RELEASE</version> </dependency> I don't have any critical functionality depending on AWS though, it's just to load a few files from S3 at runtime. So during local development (and also testing), I don't need any AWS autoconfiguration. The logical error I get when running locally is: ... Caused by: java.lang

AWS Cloudformation Link API Key to API Gateway

匿名 (未验证) 提交于 2019-12-03 01:36:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have the following Cloudformation template I am trying to deploy via SAM. This template correctly creates the DynamoDB table, an API Key, a Lambda function and the API Gateway, but I cannot figure out what I need to specify in the template to associate the API KEY with the API Gateway. I have found plenty of snippets showing partial examples, but I am struggling to piece it all together. Thank you in advance, Denny AWSTemplateFormatVersion: 2010-09-09 Transform: AWS::Serverless-2016-10-31 Parameters: TableName: Type: String Default:

How can I invoke an AWS Lambda function from my EC2 instance?

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I wrote a lambda function to take over some of the multithreaded code in our web app. Now, I'm looking to manually invoke the lambda function from an ASP.NET controller and then pass the function's return value back to the end-user. I thought about using AWS SQS to invoke the function but I haven't the slightest idea how to grab the return function's return value (the value passed back with context.succeed(returnData); ). Any ideas? 回答1: AWS Lambda now supports synchronous ("RequestResponse") invocations. For .NET, the relevant