Website + AWS Organization + AWS lambda

0

I want to create a website for each user under my aws organization. So that every user is mapped to one website and no one can access these even the management account.

So, this website make calls to the lambda functions in the respective users account. The lambda function need to be in Users account. Also, how can the management acccount set this architecture in the users account upon invitation.

How can the organization be only responsible to pay money for these resources and the users should not have the flexibility to change these functions. Although they can view them.

1 Answer
0

There are some things in your question which aren't clear.

For example, you say "no one can access these [websites] even the management account". What do you mean by access? Is access "browse the website"? Is access "change the website"?

What it sounds like is that you need the following resources for each website:

  • CloudFront distribution to host the website
  • S3 bucket to store the static content
  • API gateway for dynamic content
  • Lambda functions linked to the API Gateway

These are all things that can be defined in CloudFormation and in a single template if you like. Use Service Catalog to deliver this as a template to each account so that the users can deploy it.

Configure appropriate IAM permissions so that the users cannot modify the Lambda functions - however, I'd note that this is more difficult than it seems. If the users can't modify the functions then they can't update them either. You would need to do that from your central account. Or you host the Lambda functions in the central account behind a central API Gateway.

Edit to add: In order to have only specific users browse a website you're going to need some sort of authentication mechanism. Perhaps Cognito federated with the corporate identity service and then allow access by username and group? Or perhaps using AWS SSO?

profile pictureAWS
EXPERT
answered 10 months ago
profile picture
EXPERT
reviewed 10 months ago
  • Browse the website

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions