我在 nginx 反向代理后面有一个 .net core 2.1 api,我在 Visual Studio 中使用 docker compose 设置了该代理。运行时,API 是可访问的(我有一个可以调用来验证的健康检查控制器),但我无法调试。看起来我的解决方案在构建后没有运行。但我的容器已启动并且可以访问。我正在使用 Visual Studio 2019。
这是我的文件夹结构:
这些是文件(文件夹结构中从上到下):
Dockerfile(用于 API):
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
FROM mcr.microsoft.com/dotnet/core/aspnet:2.1-stretch-slim AS base
WORKDIR /app
#EXPOSE 80
FROM mcr.microsoft.com/dotnet/core/sdk:2.1-stretch AS build
WORKDIR /src
COPY ["RestApi/RestApi.csproj", "RestApi/"]
COPY ["Services/Services.csproj", "Services/"]
COPY ["DataServices/DataServices.csproj", "DataServices/"]
COPY ["Entities/Entities.csproj", "Entities/"]
RUN dotnet restore "RestApi/RestApi.csproj"
COPY . .
WORKDIR …Run Code Online (Sandbox Code Playgroud) 我正在尝试了解 AWS Fargate 的免费套餐定价。
我了解 AWS ECS 是一项容器编排服务。您可以选择在其中运行 EC2 实例或 Fargate。对于 EC2,AWS 免费套餐的定价是明确的。简单地说,每个月 750 小时才需要付款。但是我找不到有关 Fargate 的 ECS 的任何免费层信息。
我是否正确地假设这意味着 Fargate 的 ECS 没有免费套餐,并且您必须从使用的第一刻起付费?
我有一个AWS root用户,我用它在Amazon上创建一个S3存储桶.
现在我想通过添加以下策略使这个桶公开:
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::<my bucket name>/*"
}]
}
Run Code Online (Sandbox Code Playgroud)
我的名字在哪里?
当我尝试保存此策略时,我获得了403拒绝访问权限.
我尝试明确设置putbucketpolicy权限,但它仍然给出403.
任何机构知道为什么?
这是图像错误:

.net-core ×1
amazon-ecs ×1
amazon-s3 ×1
aws-fargate ×1
bucket ×1
debugging ×1
nginx ×1
policy ×1
price ×1
root ×1