How to restrict the access of IAM users to specific AWS Region | How do I restrict users on IAM?

Поділитися
Вставка
  • Опубліковано 17 вер 2024

КОМЕНТАРІ • 26

  • @ravivirmani6922
    @ravivirmani6922 9 місяців тому +1

    It seems this is for EC2 only. Please tell how to restrict all inventory ?

  • @ravinaborkar807
    @ravinaborkar807 5 місяців тому

    Load balancer ka access nhi h

  • @prasadch9796
    @prasadch9796 Рік тому +1

    Hi Sir, we have 10 instances, in those 10 we need to give access only 1 instance to the user. How to give the policy ??? Pls tell me

    • @devopstutorial
      @devopstutorial  Рік тому

      Here need to custom policy along with condition set

    • @devopstutorial
      @devopstutorial  Рік тому

      I will create one and give it to you

    • @maryam4071
      @maryam4071 5 місяців тому +1

      @@devopstutorial Hi, can you please also share with us?

    • @devopstutorial
      @devopstutorial  5 місяців тому

      I will create one custom policy and share but give me a day or so

    • @devopstutorial
      @devopstutorial  5 місяців тому

      @@maryam4071 sure

  • @lucianosucci
    @lucianosucci Рік тому +1

    Is there a way to disable user access without deleting the user or attaching a policy? If not, is there a policy to attach to disable user access?

    • @devopstutorial
      @devopstutorial  Рік тому

      Yes remove all the policy from the user ..than user have no access

    • @devopstutorial
      @devopstutorial  Рік тому +1

      And you can also create one policy .. in place of allow in the policy statement just change to deny

  • @arunk4062
    @arunk4062 Рік тому +1

    How do I delete the iam user

    • @devopstutorial
      @devopstutorial  Рік тому +1

      You can go to iam console and look for user ..click on user and delete

    • @arunk4062
      @arunk4062 Рік тому +1

      @@devopstutorial thanks for the quick reply

  • @victormelo5804
    @victormelo5804 2 роки тому

    Hey ! When you accessed the N.Virginia region, you saw errors but didin't click on the Instances. I'm curious are you able to at least SEE the resources?

  • @TastyFoodSecretx
    @TastyFoodSecretx Рік тому

    is it possible to this in amazon LightSail

  • @vishhnubond4526
    @vishhnubond4526 Рік тому

    Hi, how to give access for all the other region except a specific region ?
    Eg: user can access every region except Mumbai region

    • @devopstutorial
      @devopstutorial  Рік тому

      in the IAM policy you need to use condition like
      StringNotEquals. region name

    • @vishhnubond4526
      @vishhnubond4526 Рік тому +1

      @@devopstutorial ya thanks for the reply

  • @venkychowdary5432
    @venkychowdary5432 6 місяців тому

    I don't want to give permission for few instances, apart from those I want to give all the permission.How to do this.

    • @devopstutorial
      @devopstutorial  6 місяців тому

      In IAM policy u need to use condition

    • @devopstutorial
      @devopstutorial  5 місяців тому

      {
      "Version": "2012-10-17",
      "Statement": [
      {
      "Effect": "Allow",
      "Action": "ec2:*",
      "Resource": "*"
      },
      {
      "Effect": "Deny",
      "Action": "ec2:*",
      "Resource": [
      "arn:aws:ec2:region:account-id:instance/instance-id-1",
      "arn:aws:ec2:region:account-id:instance/instance-id-2",
      ]
      }
      ]
      }

  • @yaqoobjunjua6562
    @yaqoobjunjua6562 2 роки тому

    Is there a way to restrict to one instance instead of region

    • @devopstutorial
      @devopstutorial  2 роки тому

      Yes there is a way, in policy condition string equal to instance id ..