expressões lambda – Retorno de arquivo AWS PDF

Devs, me deparei com um pequeno problema. Tenho uma aplicação que localmente ela me retorna um PDF como é esperado.
Porém, quando subo a mesma aplicação para uma ec2 lambda da AWS a mesma rota me retorna uma string base64.

Para eu poder obter o PDF do servidor, preciso converter esse base64 e aí sim, tenho o arquivo.

Por que acontece isso?

networking – EC2 instance doesn’t show up in AWS Systems Manager

I am trying to create an EC2 instance (Amazon Linux, so I shouldn’t have to configure the SSM agent as it should be autoconfigured) in a private subnet, and want to be able to SSH into it. According to this post I have to use AWS Systems Manager for this. I’ve done quite a bit with codestar/beanstalk before, but now simply want to be able to create and delete everything via the AWS CLI manually for learning purposes.

Here are the commands I’m able to run fine (the ec2 instance is created succesfully with my role)

aws iam create-role --role-name ec2-role --assume-role-policy-document file://roles/ec2-role.json
aws iam attach-role-policy --role-name ec2-role --policy-arn "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore"
aws iam create-instance-profile --instance-profile-name ssm-instance-profile-for-ec2-instances
aws iam add-role-to-instance-profile --instance-profile-name ssm-instance-profile-for-ec2-instances --role-name ec2-role

// Creating the EC2 instance
aws ec2 run-instances --image-id ami-0db9040eb3ab74509 --count 1 --instance-type t2.micro --key-name key-pair-for-instance1 --subnet-id <my_valid_subnet_id> --iam-instance-profile Name=ssm-instance-profile-for-ec2-instances

I took parts of these commands from this post.

My json file for ec2-role:

  "Version": "2012-10-17",
  "Statement": (
      "Effect": "Allow",
      "Principal": { "Service": ""},
      "Action": "sts:AssumeRole"

Unfortunately this instance isn’t visible in the SSM (Systems Manager):

aws ssm describe-instance-information
    "InstanceInformationList": ()

I have been following the main documentation on SSM and from what I understand from the page below is that all you would need is the AmazonSSMManagedInstanceCore policy:

The web console hasn’t been any help so far, according to this page it treats roles and instance-profiles as the same thing.

What am I missing here to be able to use the aws ssm command to start an ssh session?

plugins – Easy Digital Downloads – Cart not working on AWS hosting

We have a site hosted on AWS. But, the Easy Digital Downloads cart is not working properly. Items added to cart disappears and the items are not removed as well. Also, there is no any cache plugin installed. There are only some basic plugins installed and there is no error on browser console.

Can someone hopefully shed some light on this?

Thank you.

aws – Pasar un fichero de S3 GLACIER a S3 ESTANDARD

Es posible pasar un documento que está en un vault de s3 glacier a s3 estandar??
He visto que si uso los ciclos de vida y lo paso de de estandar a glacier podria iniciar una restauracion del archivo ,pero ¿Y los que almaceno yo directamente en un vault?

Does AWS store users’ passwords without hashing?

Checks if the account password policy for IAM users meets the specified requirements indicated in the parameters.

What is being checked is the account password policy, not the actual passwords of users. It’s a periodic check to make sure you’re requiring the level of complexity that you want to be requiring. As such, no need for reversible encryption of user passwords.

FBI arrests man planning AWS data center bomb attack…s-bomb-attack/

Sum… | Read the rest of

aws cli – Is there any rhyme or reason behind when to use list- and when to use describe- for the AWS CLI?

For the AWS CLI the right command is:

aws ec2 describe-key-pairs

But not:

aws ec2 describe-key-pairs

But there is:

aws ecs list-clusters

My current workflow is:

  1. Guess
  2. Get it wrong
  3. Change
  4. Get it wrong
  5. Look in the help
  6. Realize a made a typo like descrbe
  7. Go back to my first guess

But I wish I knew some reason to help choose between list-foo or describe-foo.

Why do cloud providers as AWS or Google Cloud recommend client-side encryption?

As per this definition on Wikipedia:

We can see that client-side encryption is mostly related to Cloud services. What are the technical reasons after this recommendation and what are examples where an attacker could take advantage of this?

postgresql – Can we check server specification using postgres query in aws RDS?

I deployed an app from dev to production server. The dev and prod has same RAM, but we use RDS as database server on production server. But I feel slower performance in production database. I don’t have any cred to AWS Console, but I need to know what is the server specification like RAM and CPU of the Postgres RDS. Can I know it using SQL query?

What's the perfect software to sell Azure and AWS cloud services through WHMCS

Hi All

We are a hosting company that wants to start moving into the cloud service offering arena and are on the hunt for various software… | Read the rest of